This commit is contained in:
Jonas Havelka 2024-08-02 20:32:07 +02:00
parent ccf3ec07f7
commit 4a3681b1a6

View file

@ -24,7 +24,7 @@ class SoustredeniListView(generic.ListView):
if not self.request.user.je_org: if not self.request.user.je_org:
return super().get_queryset() return super().get_queryset()
return ( return (
Soustredeni.objects super().get_queryset()
.prefetch_related( .prefetch_related(
"ucastnici", "ucastnici__osoba", "ucastnici", "ucastnici__osoba",
"organizatori", "organizatori__osoba", "organizatori", "organizatori__osoba",