7
Just had a similar problem today, but I think Iโve solved it
In my case the issue was that django was loading models.py twice and therefore trying to register the model for comment moderation twice as well. I fixed this by modifying the code from:
moderator.register(Post, PostModerator)
to:
if Post not in moderator._registry:
moderator.register(Post, PostModerator)
0
I imagine that CommentModerator (the superclass for PostModerator) is moderated by default?
- [Django]-How to create different objects depending on input?
- [Django]-Get a list of objects in tastypie (in another view)
- [Django]-How to add search parameters to GET request in Django REST Framework?
- [Django]-How do I dynamically set max_num for a django TabularInline based on a value from a foreign table?
Source:stackexchange.com