seminar | admin | pridany dalsi node do admina
This commit is contained in:
parent
a7879dc799
commit
84dcb34a70
1 changed files with 12 additions and 0 deletions
|
@ -106,6 +106,8 @@ class TreeNodeAdmin(PolymorphicParentModelAdmin):
|
||||||
m.PohadkaNode,
|
m.PohadkaNode,
|
||||||
m.UlohaVzorakNode,
|
m.UlohaVzorakNode,
|
||||||
m.TextNode,
|
m.TextNode,
|
||||||
|
m.CastNode,
|
||||||
|
m.OrgTextNode,
|
||||||
]
|
]
|
||||||
|
|
||||||
actions = ['aktualizuj_nazvy']
|
actions = ['aktualizuj_nazvy']
|
||||||
|
@ -159,6 +161,16 @@ class TextNodeAdmin(PolymorphicChildModelAdmin):
|
||||||
base_model = m.TextNode
|
base_model = m.TextNode
|
||||||
show_in_index = True
|
show_in_index = True
|
||||||
|
|
||||||
|
@admin.register(m.CastNode)
|
||||||
|
class TextNodeAdmin(PolymorphicChildModelAdmin):
|
||||||
|
base_model = m.CastNode
|
||||||
|
show_in_index = True
|
||||||
|
|
||||||
|
@admin.register(m.OrgTextNode)
|
||||||
|
class TextNodeAdmin(PolymorphicChildModelAdmin):
|
||||||
|
base_model = m.OrgTextNode
|
||||||
|
show_in_index = True
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(m.Nastaveni)
|
admin.site.register(m.Nastaveni)
|
||||||
admin.site.register(m.Novinky)
|
admin.site.register(m.Novinky)
|
||||||
|
|
Loading…
Reference in a new issue