Hello,

I am using Django admin to create/update some records. Now, I need to track changes. After somebody updates a record, I need to see what was changed and then create a text log like:

changed `name`: oldvalue -> newvalue,
changed `email`: [email protected] -> [email protected]

Where is the right place, where I have access to unchanged model values and validated values from the submit form? The place before the model is updated by form values? Another approach would be to save all values into a dictionary after the model is loaded from database and in save() method compare old and new values, but I don't know how how to call a code after load.

Thanks,
Martin

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to