diff --git a/app/text/admin.py b/app/text/admin.py index ead8edc..00a8b9f 100644 --- a/app/text/admin.py +++ b/app/text/admin.py @@ -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