Add custom field to page settings in Django CMS

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?

Open 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

Back to Top