Browse Source

Fix ResitelInline a ReseniAdmin

export_seznamu_prednasek
LEdoian 6 years ago
parent
commit
32807c9f88
  1. 4
      seminar/admin.py

4
seminar/admin.py

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

Loading…
Cancel
Save