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
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)
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
models.py
from django.db import models
class MyModel(models.Model): my_field = models.TextField()
class OfficeMates(models.Model): name = models.CharField(max_length=100, default=None)
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)