Django Admin: Detect if a subset of an object fields has changed and which of them

Posted by Mandx on Stack Overflow See other posts from Stack Overflow or by Mandx
Published on 2010-03-08T01:59:38Z Indexed on 2010/03/08 7:51 UTC
Read the original article Hit count: 637

I need to detect when some of the fields of certain model have changed in the admin, to later send notifications depending on which fields changed and previous/current values of those fields.

I tried using a ModelForm and overriding the save() method, but the form's self.cleaned_data and seld.instance already have the new values of the fields.

© Stack Overflow or respective owner

Related posts about django-admin

Related posts about django-forms