Skip to content

Commit

Permalink
relax django-filter subclassing restriction #1022
Browse files Browse the repository at this point in the history
this is a lesser used but still recommended usage pattern
  • Loading branch information
tfranzel committed Jul 10, 2023
1 parent 1a9be59 commit d4d16ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drf_spectacular/contrib/django_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ class SomeFilter(FilterSet):
"""
target_class = 'django_filters.rest_framework.DjangoFilterBackend'
match_subclasses = True

def get_schema_operation_parameters(self, auto_schema, *args, **kwargs):
model = get_view_model(auto_schema.view)
Expand Down

0 comments on commit d4d16ac

Please sign in to comment.