File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 33from django .conf import settings
44from django .core .exceptions import ValidationError
55from django_filters .constants import EMPTY_VALUES
6- from drf_spectacular .utils import extend_schema_field
76from drf_spectacular .types import OpenApiTypes
7+ from drf_spectacular .utils import extend_schema_field
88
99__all__ = (
1010 'ContentTypeFilter' ,
@@ -116,6 +116,7 @@ class MultiValueWWNFilter(django_filters.MultipleChoiceFilter):
116116 field_class = multivalue_field_factory (forms .CharField )
117117
118118
119+ @extend_schema_field (OpenApiTypes .STR )
119120class TreeNodeMultipleChoiceFilter (django_filters .ModelMultipleChoiceFilter ):
120121 """
121122 Filters for a set of Models, including all descendant models within a Tree. Example: [<Region: R1>,<Region: R2>]
You can’t perform that action at this time.
0 commit comments