Skip to content

Commit

Permalink
Bugfix admin view "Winnings Issued" options.
Browse files Browse the repository at this point in the history
  • Loading branch information
davepeck committed May 8, 2024
1 parent aa35b0a commit c6f08a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/vb/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ def lookups(self, request, model_admin):
def queryset(self, request, queryset):
"""Filter the queryset by state."""
if self.value() == "yes":
return queryset.filter(creation_request_id__ne="")
return queryset.exclude(creation_request_id="")
if self.value() == "no":
return queryset.filter(creation_request_id__eq="")
return queryset.filter(creation_request_id="")
return queryset


Expand Down

0 comments on commit c6f08a0

Please sign in to comment.