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):
|
class TextAdmin(admin.ModelAdmin):
|
||||||
list_display = (
|
list_display = (
|
||||||
'__str__',
|
'__str__',
|
||||||
'position',
|
'item',
|
||||||
|
'edit',
|
||||||
'slug',
|
'slug',
|
||||||
'public',
|
'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)
|
#@admin.decorators.register(models.Page)
|
||||||
#class PageAdmin(admin.ModelAdmin):
|
#class PageAdmin(admin.ModelAdmin):
|
||||||
# pass
|
# pass
|
||||||
|
|
Loading…
Reference in a new issue