Fix ResitelInline a ReseniAdmin

This commit is contained in:
LEdoian 2019-04-30 22:09:46 +02:00
parent 9945d6232a
commit 32807c9f88

View file

@ -222,7 +222,7 @@ class ResitelAdmin(VersionAdmin):
list_display = ['jmeno', 'prijmeni', 'user', 'pohlavi_muz', 'skola', 'rok_maturity', 'pocet_reseni']
list_filter = ['pohlavi_muz', 'rok_maturity', 'zasilat']
search_fields = ['jmeno', 'prijmeni', 'ulice', 'mesto', 'email']
inlines = [ReseniKResiteliInline]
# inlines = [ReseniKResiteliInline] # FIXME:
view_on_site = False
def get_queryset(self, request):
@ -341,7 +341,7 @@ class ReseniAdmin(VersionAdmin):
list_display = [ProblemInline, ResitelInline, 'forma', 'cas_doruceni']
list_filter = ['cas_doruceni', 'forma']
search_fields = []
inlines = [PrilohaReseniInline,ProblemInline,ResitelInline]
inlines = [PrilohaReseniInline,ProblemInline,] # FIXME: odmazáno ResitelInline
view_on_site = False
def get_queryset(self, request):