I have a PageExtension
with a custom field in my Django CMS app.
How do I make this custom field editable in the Page's Settings or Advanced Settings?
I followed the tutorial on docs.django-cms but nothing appears in my admin interface.
I have a PageExtension
with a custom field in my Django CMS app.
How do I make this custom field editable in the Page's Settings or Advanced Settings?
I followed the tutorial on docs.django-cms. but nothing appears in my admin interface.
Share Improve this question edited Mar 3 at 3:27 Stefan asked Mar 2 at 8:46 StefanStefan 233 bronze badges1 Answer
Reset to default 0Open the admin.py file in your app folder and add the following lines.
from django.contrib import admin
from .models import MyModelName
class MyModelNameAdmin(admin.ModelAdmin):
list_display = ('field1', 'field2' )
admin.site.register(MyModelName, MyModelNameAdmin)
You can look up more about modeladmin in the django docs