Fix zapomenuté fieldy v tabulce

TODO: rebase squash
This commit is contained in:
Pavel "LEdoian" Turinsky 2023-05-22 22:21:42 +02:00
parent ed5e7a1d9f
commit 8f2aa72f6d

View file

@ -131,9 +131,6 @@ class TabulkaOdevzdanychReseniView(ListView):
tabulka[problem][resitel] = [reseni] tabulka[problem][resitel] = [reseni]
else: else:
tabulka[problem][resitel].append(reseni) tabulka[problem][resitel].append(reseni)
# Pro jednoduchost template si ještě poznamenáme ID problému a řešitele
tabulka[problem][resitel].problem_id = problem.id
tabulka[problem][resitel].resitel_id = resitel.id
for hodnoceni in self.get_queryset(): for hodnoceni in self.get_queryset():
for resitel in hodnoceni.reseni.resitele.all(): for resitel in hodnoceni.reseni.resitele.all():