phantasma/app/text/admin.py

18 lines
320 B
Python
Raw Normal View History

2021-09-28 13:10:22 +00:00
from django.contrib import admin
2021-10-10 15:06:43 +00:00
from . import models
@admin.decorators.register(models.Text)
class TextAdmin(admin.ModelAdmin):
2021-10-11 12:55:45 +00:00
list_display = (
'__str__',
'position',
'slug',
'public',
)
2021-10-10 15:06:43 +00:00
2021-10-22 16:35:07 +00:00
#@admin.decorators.register(models.Page)
#class PageAdmin(admin.ModelAdmin):
# pass