njpma/app/text/admin.py

17 lines
320 B
Python

from django.contrib import admin
from . import models
@admin.decorators.register(models.Text)
class TextAdmin(admin.ModelAdmin):
list_display = (
'__str__',
'position',
'slug',
'public',
)
#@admin.decorators.register(models.Page)
#class PageAdmin(admin.ModelAdmin):
# pass