Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed Feb 15, 2024
1 parent 5c4ab8b commit 52a1cd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project/geosource/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ class SourceFilterSet(filters.FilterSet):
)
)

def filter_status(self, queryset, name, value):
def filter_status(self, qs, name, value):
if value is not None and value != "":

# WMTS sources should be excluded from status filter
return queryset.filter(status=int(value)).exclude(
qs = qs.filter(status=int(value)).exclude(
polymorphic_ctype__model__icontains="wmts"
)
return queryset
return qs

class Meta:
model = Source
Expand Down

0 comments on commit 52a1cd5

Please sign in to comment.