dominno/django-moderation — Issue #60: Modified content of object erased/reverted after calling my_object.save()
Author: daniel2013
Created: 2012-02-24 17:45:34+00:00
State: open

Hi,

I am using te following code to moderate my object:

class NodeModerator(GenericModerator):
auto_approve_for_superusers = True
auto_approve_for_staff = True

visible_until_rejected = False

visibility_column = 'visible_moderator'

notify_user = False

fields_exclude = ['hits', (and some more fields)]
moderation.register(Node, NodeModerator)

Then I modify my object and the changes appear in the moderated object admin page.

But when I do:

my_object.hits += 1
my_object.save()

All changes in the moderated object admin disappear/revert back.

Am I doing something wrong or this a bug? And how can I fix it?

Thanks.