show item/edit
This commit is contained in:
parent
bd8988e6bf
commit
8b0079cf24
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue