Your Ad Here

Monday, January 9, 2012

Need to examine and act on old vs. new at .save() time

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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 comments:

Post a Comment