From 8b0079cf24b30e84d4b9c0d3b539a5138431de4c Mon Sep 17 00:00:00 2001 From: j Date: Tue, 26 Oct 2021 13:16:43 +0100 Subject: [PATCH] show item/edit --- app/text/admin.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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