Reputation: 3163
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 ?
Upvotes: 0
Views: 943
Reputation: 985
Yes, as you said, and this is a good tutorial for signals
instead of Django docs
Upvotes: 1