You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm afraid I don't understand enough to write a proper test, but here is how to reproduce.
from django_filters import rest_framework as filters
from django_filters.filterset import STRICTNESS
from .models import Model
class ModelFilter(filters.FilterSet):
class Meta:
model = Model
fields = {'title': ['icontains']}
strict = STRICTNESS.RAISE_VALIDATION_ERROR
Then, GET /model?foo=bar. I expect a 500, but I get a 200 with all records. A GET /model?title=batbaz produces the expected result.
Thanks...
The text was updated successfully, but these errors were encountered:
Just a quick update that I was originally on version 0.15.3, and have since upgraded to 1.0.1. However, merely change the import above from from django_filters.filterset import STRICTNESS to from django_filters import STRICTNESS and you'll get the same behavior on v 1.0.1.
I'm afraid I don't understand enough to write a proper test, but here is how to reproduce.
Then,
GET /model?foo=bar
. I expect a 500, but I get a 200 with all records. AGET /model?title=batbaz
produces the expected result.Thanks...
The text was updated successfully, but these errors were encountered: