Fix autocomplete (deadline -> zadani)
This commit is contained in:
parent
e91c9d7ba5
commit
0c176b8a91
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class OdevzdatelnyProblemAutocomplete(autocomplete.Select2QuerySetView):
|
||||||
rocnik = nastaveni.aktualni_rocnik
|
rocnik = nastaveni.aktualni_rocnik
|
||||||
# Od tohoto místa dál jsem zkoušel spoustu variací podle https://django-polymorphic.readthedocs.io/en/stable/advanced.html
|
# Od tohoto místa dál jsem zkoušel spoustu variací podle https://django-polymorphic.readthedocs.io/en/stable/advanced.html
|
||||||
temaQ = Q(Tema___rocnik = rocnik, stav=m.Problem.STAV_ZADANY)
|
temaQ = Q(Tema___rocnik = rocnik, stav=m.Problem.STAV_ZADANY)
|
||||||
ulohaQ = Q(Uloha___cislo_deadline__rocnik = rocnik, stav=m.Problem.STAV_ZADANY)
|
ulohaQ = Q(Uloha___cislo_zadani__rocnik = rocnik, stav=m.Problem.STAV_ZADANY)
|
||||||
clanekQ = Q(Clanek___cislo__rocnik = rocnik, stav=m.Problem.STAV_ZADANY)
|
clanekQ = Q(Clanek___cislo__rocnik = rocnik, stav=m.Problem.STAV_ZADANY)
|
||||||
qs = m.Problem.objects.filter(temaQ | ulohaQ | clanekQ)
|
qs = m.Problem.objects.filter(temaQ | ulohaQ | clanekQ)
|
||||||
#print(temata, ulohy, clanky)
|
#print(temata, ulohy, clanky)
|
||||||
|
|
Loading…
Reference in a new issue