Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Dec 16, 2019 · 0 comments

Comments

@viktor-yunenko
Copy link

viktor-yunenko commented Dec 16, 2019

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:

  • django-moderation==0.7.0
  • python 3.7
  • django 2.1
  • django cms 3. 7
@viktor-yunenko viktor-yunenko changed the title moderation.helpers.automoderate requires a User model, while the underlying code implies that it can accept user=None or HttpRequest.user moderation.helpers.automoderate requires a User model instance, while the underlying code implies that it can accept user=None or HttpRequest.user Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants