I am a newbie in django (and stackoverflow also) but i try to set the name field of a model based of the newly created id of the record. Is there anything like after_save callback where i can check if this is a newly created record and then set the name field based on the new id? Just a note: I want to store this value not just showing it using display_name or somethign like that.. Thanks
Share
You would need to overwrite the Model’s save method like that: