This is probably a very old question, but I wasn't able to find an
obvious answer - sorry if I overlooked anything.

I have a model with a "status" field (using Choices) that defaults to
"pending" and has other options like "closed", "active", etc.

I would like to implement email notifications of changes to this
model, particularly concerning this field.

I figure that a custom signal might work, but I'm not sure where to
put it.

In pre_save (the only place I know that I have access to the "old"
value), I don't know yet that the object actually finished saving
correctly. In post_save, I don't think I have the old value to compare
to the new.

The notification should be able to contain something along the lines
of "user x changed blah status from Y to Z".

Where should I be looking to utilize old-vs-new comparison, and to
generate a signal or some such, so as to handle this in an appropriate
fashion?

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

Reply via email to