Skip to content

Commit

Permalink
Remove the "other" filter in the directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchrisadams committed Sep 13, 2023
1 parent b9e9e36 commit 5f2a879
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/greencheck/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ class ProviderFilter(django_filters.FilterSet):
services = django_filters.ModelChoiceFilter(
field_name="services",
label="Green web hosting service",
queryset=ac_models.Service.objects.all(),
# we exclude the "other" service, because it's only used
# when a provider enters data, and we don't want to filter for it
queryset=ac_models.Service.objects.exclude(slug="other-none"),
)
# note: this is commented out for Han,
# name = django_filters.CharFilter(lookup_expr="icontains")
Expand Down

0 comments on commit 5f2a879

Please sign in to comment.