Admin ReseniNode
This commit is contained in:
parent
527a7b3ea6
commit
1c146ac5c3
1 changed files with 6 additions and 1 deletions
|
@ -4,7 +4,7 @@ from django.forms import widgets
|
|||
|
||||
from polymorphic.admin import PolymorphicParentModelAdmin, PolymorphicChildModelAdmin, PolymorphicChildModelFilter
|
||||
|
||||
from .models import TreeNode, RocnikNode, CisloNode, MezicisloNode, TemaVCisleNode, UlohaZadaniNode, PohadkaNode, UlohaVzorakNode, TextNode, CastNode, OrgTextNode
|
||||
from .models import TreeNode, RocnikNode, CisloNode, MezicisloNode, TemaVCisleNode, UlohaZadaniNode, PohadkaNode, UlohaVzorakNode, TextNode, CastNode, OrgTextNode, ReseniNode
|
||||
from .models import Text, Obrazek
|
||||
|
||||
# Polymorfismus pro stromy
|
||||
|
@ -24,6 +24,7 @@ class TreeNodeAdmin(PolymorphicParentModelAdmin):
|
|||
TextNode,
|
||||
CastNode,
|
||||
OrgTextNode,
|
||||
ReseniNode,
|
||||
]
|
||||
|
||||
actions = ['aktualizuj_nazvy']
|
||||
|
@ -88,6 +89,10 @@ class TextNodeAdmin(PolymorphicChildModelAdmin):
|
|||
base_model = OrgTextNode
|
||||
show_in_index = True
|
||||
|
||||
@admin.register(ReseniNode)
|
||||
class ReseniNodeAdmin(PolymorphicChildModelAdmin):
|
||||
base_model = ReseniNode
|
||||
show_in_index = True
|
||||
|
||||
class TextAdminInline(admin.TabularInline):
|
||||
model = Text
|
||||
|
|
Loading…
Reference in a new issue