Skip to content

Commit

Permalink
fix: Autoriser seulement les "GET" sur PerimeterAutocompleteViewSet (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilouf authored Dec 30, 2024
1 parent aff0259 commit 848df37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lemarche/api/perimeters/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class PerimeterAutocompleteViewSet(mixins.ListModelMixin, viewsets.GenericViewSe
serializer_class = PerimeterSimpleSerializer
filterset_class = PerimeterAutocompleteFilter
pagination_class = None
http_method_names = ["get"]

def finalize_response(self, request, response, *args, **kwargs):
"""
Expand Down

0 comments on commit 848df37

Please sign in to comment.