Skip to content

Commit

Permalink
fix: Fix direction of "no active job" filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Aug 19, 2024
1 parent 01b9fed commit 955344a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_registry/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def lookups(self, request, model_admin):
def queryset(self, request, queryset):
if self.value() == "1":
active_jobs = Job.objects.active().filter(collection=OuterRef("pk"))
return queryset.filter(Exists(active_jobs))
return queryset.exclude(Exists(active_jobs))


class IncompleteFilter(admin.SimpleListFilter):
Expand Down

0 comments on commit 955344a

Please sign in to comment.