0
votes

I'm confused with Django's post-save signal documentation:

sender The model class.

instance The actual instance being saved.

Is "sender" the class of the model instance being saved? Is "instance" an instance of the sender model ? i.e. if I registered a signal receiver to receive post_save signals from the User model using signal.connect(), would "sender" be the User model and "instance" be the instance of the User model being saved ?

1

1 Answers

1
votes

Yes, as you said, and this is a good tutorial for signals instead of Django docs