Browse Source

seminar | admin | kdyz cislo nema prirazene cislo reseni

Kdyz cislo nema prirazene cislo reseni,
tak nelze zjistovat fazy
remotes/origin/prednasky
Bc. Petr Pecha 8 years ago
parent
commit
4fda307664
  1. 1
      seminar/admin.py

1
seminar/admin.py

@ -418,6 +418,7 @@ class ProblemAdmin(VersionAdmin):
return readonly_fields return readonly_fields
if obj.cislo_zadani.faze != 'admin': if obj.cislo_zadani.faze != 'admin':
readonly_fields += ['nazev', 'text_zadani', 'body'] readonly_fields += ['nazev', 'text_zadani', 'body']
if obj.cislo_reseni:
if obj.cislo_reseni.faze != 'admin': if obj.cislo_reseni.faze != 'admin':
readonly_fields += ['text_reseni'] readonly_fields += ['text_reseni']
return readonly_fields return readonly_fields

Loading…
Cancel
Save