If I override save() in a model, can I get the original value of a
field to compare to the new value, to see if it has changed?

I know it's easy to do in a form: form.initial['field_name']

But I want to do the same thing regardless of which form is used to
change the model instance.  In other words, by overriding save().

I suppose I could use self.pk to get the original value from the
database before saving (and will do so if that's the only way), but
I'm looking for a way that does not require hitting the database
again, similar to the form method.
--~--~---------~--~----~------------~-------~--~----~
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