Hi, I think you should see at the forms's cleaned_data attribute and compare it against the model current state, before saving.
Regards Nahuel 2012/1/10 Jeff <jbla...@mitre.org>: > On Jan 10, 8:14 am, Andre Terra <andrete...@gmail.com> wrote: >> You can override the model's save method?[1][2] > > Hi Andre, > > Thanks for replying. Yes, I'm aware that I need to override .save(). > See: > >> > I need to be able to determine, at .save() time (before I call the >> > parent class' .save()), ... > > I need to know how to, in my custom .save() for a model: > > a) determine what fields changed (if any) (HOW?) > b) and take certain actions if field X was one of the changed fields. > (I know how) > >> On Mon, Jan 9, 2012 at 11:39 PM, Jeff <jbla...@mitre.org> wrote: >> > Hi all, >> >> > I need to be able to determine, at .save() time (before I call the >> > parent class' .save()), if a certain field on my model object was >> > changed, and act on that via some custom code. How can I do this, >> > bearing in mind that we call .save() from non-web code, etc? We use >> > Django's ORM from various other non-web interfaces and code. My point >> > is that we can't just inspect a web form's result data. >> >> > I'd appreciate any thoughts. >> >> > -- >> > 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 >> > django-users+unsubscr...@googlegroups.com. >> > For more options, visit this group at >> >http://groups.google.com/group/django-users?hl=en. > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.