Skip to content

Commit

Permalink
fix(generic): set unknown_field_behavior to WARN in GenericFilterSet
Browse files Browse the repository at this point in the history
Closes: #1583
  • Loading branch information
b1rger committed Feb 6, 2025
1 parent 5186708 commit e0e04d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apis_core/generic/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class GenericFilterSet(FilterSet):

class Meta:
form = GenericFilterSetForm
# we set the UnknownFieldBehavior to WARN, so the form does not
# break if there are JSONFields
unknown_field_behavior = django_filters.UnknownFieldBehavior.WARN

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down

0 comments on commit e0e04d6

Please sign in to comment.