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