[Note] About save methods

Here lies an order of save methods and what data can be accessed from every one of them.

In order to find out the order I simply put print() in each of these methods:

1signals.pypre_initown fields ?Link
2admin.pysave_modelown fieldsLink
(before super().save())
own fieldsLink
4signals.pypre_saveown fieldsLink
5signals.pypost_save+ idLink
(after super().save())
+ idLink
7admin.pysave_related()+ idLink

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.