dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 90 forks source link

Object won't auto-approve as superuser #222

Open silentjay opened 11 months ago

silentjay commented 11 months ago

Saving an object in the django admin logged in as a superuser was leading to these objects going into the Moderation Objects queue as pending, even with auto_approve_for_superusers = True explicitly.

I fixed this by adding a custom save_model() to the ModelAdmin for the model in question as suggested in the docs, even though I didn't have an existing save_model(). This looks like a possible bug to me, so putting this here just incase someone comes across the same issue.