Saving relation information

2 views
Skip to first unread message

michalj...@hotmail.com

unread,
Dec 5, 2006, 6:04:14 AM12/5/06
to Django users
Hi.
I'm wondering is there any way to determine changes made in relations
for particular object from the model save method?
Let's say that we have a model class with name and some many-to-many
field. Now for example through admin interface we change realtions for
our object. Btw objects history in admin application will not display
notification abut such action :). As far as i know saving relation
information takes place after saving object metadata (by manipulator's
save).
The reason i'm diging in is that i want some logging information about
all changes on my objects. My current idea is to override save for my
objects and introduce some application specific logging api. The
disadvantage of such solution will be lack of informations about
changes on relations from places other than my application (admin site
i.e.)
Does anyone have any ideas?

Kind regards

Reply all
Reply to author
Forward
0 new messages