show item/edit

This commit is contained in:
j 2021-10-26 13:16:43 +01:00
parent bd8988e6bf
commit 8b0079cf24

View file

@ -7,11 +7,18 @@ from . import models
class TextAdmin(admin.ModelAdmin):
list_display = (
'__str__',
'position',
'item',
'edit',
'slug',
'public',
'position',
)
def item(self, obj):
return obj.data.get('item')
def edit(self, obj):
return obj.data.get('edit')
#@admin.decorators.register(models.Page)
#class PageAdmin(admin.ModelAdmin):
# pass