Použijme konstantu, ne hardcodovaný řetězec
This commit is contained in:
parent
10b2d11249
commit
14c6706bf3
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ class NahrajReseniView(LoginRequiredMixin, CreateView):
|
|||
# Zaříznutí nezadaných problémů
|
||||
nadproblem_id = self.kwargs["nadproblem_id"]
|
||||
self.nadproblem = get_object_or_404(m.Problem, id=nadproblem_id)
|
||||
if self.nadproblem.stav != "zadany":
|
||||
if self.nadproblem.stav != m.Problem.STAV_ZADANY:
|
||||
raise PermissionDenied()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue