> I'd like to override the save() method and within it I'd like to test
 >  if a value has changed, that is, if that value as stored in the
 > object (in memory) is different from what is actually stored in
 > database.

Another approach is using __getattr__ to monitor changes. It saves you a 
query, but it also makes it more likely that the actual database value 
might have changed in the meantime.

Michael

--~--~---------~--~----~------------~-------~--~----~
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