You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that instance.pk should be preserved in the pre_save signal handler before passing to a transaction.on_commit() callback. There are cases, such as when using transactions, where the instance might not have a primary key already. For instance:
The callback runs only after the outermost transaction has been committed, but the parent has already been deleted and does not have a primary key at that moment.
The text was updated successfully, but these errors were encountered:
Hi there! Thanks for a very useful project.
I believe that
instance.pk
should be preserved in thepre_save
signal handler before passing to atransaction.on_commit()
callback. There are cases, such as when using transactions, where the instance might not have a primary key already. For instance:The callback runs only after the outermost transaction has been committed, but the parent has already been deleted and does not have a primary key at that moment.
The text was updated successfully, but these errors were encountered: