dominno/django-moderation — Issue #51: (Auto-)Approve doesn't work
Author: Tyrdall
Created: 2011-11-25 17:20:16+00:00
State: open

I've just made the basic installation including moderators.py:

#################################
from moderation import moderation
from database.models import ContactPerson

moderation.register(ContactPerson)
#################################

also urls.py improvement:

#################################
from django.contrib import admin
from moderation.helpers import auto_discover

auto_discover()
admin.autodiscover()
#################################

That's it. If I change an object, a moderated object is created. I can also reject it. But if I try to approve it, the status is still "Pending". It also has the mark "Auto-approved: Superuser" and the changes are auto-approved actually, but the status doesn't change. If I try to debug I can see that here:

https://github.com/dominno/django-moderation/blob/master/src/moderation/models.py#L162

self.moderation_status is 1
self.changed_object.moderated_object.moderation_status is 2

Can you help me?
Thanks in advance.
p.s.: Awesome tool!