Skip to content

Commit

Permalink
Don't edit the orignal django-filters schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
wgiddens committed Mar 1, 2023
1 parent eeb8a11 commit 1c00668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drf_spectacular/contrib/django_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def resolve_filter_field(self, auto_schema, model, filterset_class, field_name,
schema = build_basic_type(annotation)
else:
# allow injecting raw schema via @extend_schema_field decorator
schema = annotation
schema = annotation.copy()
elif filter_method_hint is not _NoHint:
if is_basic_type(filter_method_hint):
schema = build_basic_type(filter_method_hint)
Expand Down

0 comments on commit 1c00668

Please sign in to comment.