Skip to content

Commit

Permalink
[fix] add missing return statement for schema
Browse files Browse the repository at this point in the history
exception on usage raised over at tfranzel/drf-spectacular#1180
  • Loading branch information
tfranzel authored Feb 21, 2024
1 parent 5840e4f commit a384678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rest_framework_gis/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ def filter_queryset(self, request, queryset, view):
return queryset.order_by(GeometryDistance(filter_field, point))

def get_schema_operation_parameters(self, view):
params = super().get_schema_operation_parameters(view)
params.append(
return [
*super().get_schema_operation_parameters(view),
{
"name": self.order_param,
"required": False,
Expand All @@ -307,4 +307,4 @@ def get_schema_operation_parameters(self, view):
"style": "form",
"explode": False,
}
)
]

0 comments on commit a384678

Please sign in to comment.