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

moderation.helpers.automoderate requires a User model instance, while the underlying code implies that it can accept user=None or HttpRequest.user #184

Open viktor-yunenko opened 4 years ago

viktor-yunenko commented 4 years ago

For now I had to replace

automoderate(donation, user=request.user)

with

            user_active = User.objects.filter(is_active=True).first()
            automoderate(donation, user=admin_active)

Environment: