Small update

This commit is contained in:
Tom Hubrecht 2021-03-28 20:26:22 +02:00
parent 101630524d
commit 2cf4315eaa

View file

@ -337,7 +337,7 @@ class ElectionListView(ListView):
user = self.request.user
qs = super().get_queryset()
if user.is_authenticated:
return qs.filter(Q(archived=False) | Q(created_by=self.request.user))
return qs.filter(Q(archived=False) | Q(created_by=user))
return qs.filter(archived=False)