seminar | admin | pridany dalsi node do admina

This commit is contained in:
Tomas "Jethro" Pokorny 2020-05-07 00:51:10 +02:00
parent a7879dc799
commit 84dcb34a70

View file

@ -106,6 +106,8 @@ class TreeNodeAdmin(PolymorphicParentModelAdmin):
m.PohadkaNode,
m.UlohaVzorakNode,
m.TextNode,
m.CastNode,
m.OrgTextNode,
]
actions = ['aktualizuj_nazvy']
@ -159,6 +161,16 @@ class TextNodeAdmin(PolymorphicChildModelAdmin):
base_model = m.TextNode
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.Novinky)