Small update
This commit is contained in:
parent
101630524d
commit
2cf4315eaa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue