regluit/questionnaire/page/admin.py

9 lines
171 B
Python

from django.contrib import admin
from .models import Page
class PageAdmin(admin.ModelAdmin):
list_display = ('slug', 'title',)
admin.site.register(Page, PageAdmin)