You could probably use the post_init signal to make a copy of the
model values for comparison in your save method. I'm doing something
similar to create a special manager object each time a certain model
instance is created.

Something like this...

def backup_model_data(sender, instance, signal, *args, **kwargs):
     instance._original_data = instance.__dict__.copy()

class YourModel(model.Models):
    ...
dispatcher.connect(backup_model_data,signal=signals.post_init,
sender=YourModel)




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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