Skip to content

Commit

Permalink
Merge pull request #214 from volunteers-for-city-projects/project
Browse files Browse the repository at this point in the history
Fixed ProjectFilter
  • Loading branch information
MrRuzal authored Nov 18, 2023
2 parents 9c4e095 + 174d93e commit 22a7156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/api/filters.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import django_filters
from django.db.models import Q
from django.http import Http404
from django.utils import timezone
from django_filters.rest_framework import FilterSet, filters
from rest_framework.exceptions import ParseError
from taggit.models import Tag

from content.models import City, Skills
Expand Down Expand Up @@ -88,7 +88,7 @@ def filter_queryset(self, queryset):
try:
queryset = super().filter_queryset(queryset)
except (ValueError, self.Meta.model.DoesNotExist):
raise Http404("Invalid filter value for {}".format(name))
raise ParseError("Invalid filter value for {}".format(name))

return queryset

Expand Down

0 comments on commit 22a7156

Please sign in to comment.