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
268 stars 91 forks source link

Error regarding "sites" #144

Closed Dean-Christian-Armada closed 8 years ago

Dean-Christian-Armada commented 8 years ago

Hi,

I am not familiar with this site of Django,, I wonder if I am the only who that has experienced this but can I get some help? This error is showing when I try to add to my Moderated Model in the django admin

screenshot from 2015-12-10 11 26 53

models.py

from django.db import models

class MyModel(models.Model): my_field = models.TextField()

def __str__(self):
    return self.my_field

class OfficeMates(models.Model): name = models.CharField(max_length=100, default=None)

def __str__(self):
    return self.name

moderator.py

from moderation import moderation

from .models import *

moderation.register(MyModel) moderation.register(OfficeMates)

admin.py

from django.contrib import admin

from moderation.admin import ModerationAdmin

from .models import *

class YourModelAdmin(ModerationAdmin): list_per_page = 50

admin.site.register(MyModel, YourModelAdmin) admin.site.register(OfficeMates)