mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
Have options example in documenting-your-api.md to return a Response
It was returning data which is not correct. Closes #7638.
This commit is contained in:
parent
96993d817a
commit
a1ef73685e
|
@ -202,7 +202,7 @@ You can modify the response behavior to `OPTIONS` requests by overriding the `op
|
|||
meta = self.metadata_class()
|
||||
data = meta.determine_metadata(request, self)
|
||||
data.pop('description')
|
||||
return data
|
||||
return Response(data=data, status=status.HTTP_200_OK)
|
||||
|
||||
See [the Metadata docs][metadata-docs] for more details.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user