mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Update content-negotiation.md
This commit is contained in:
parent
176424e9d5
commit
51b1dc1e42
|
@ -77,7 +77,7 @@ The default content negotiation class may be set globally, using the `DEFAULT_CO
|
||||||
'DEFAULT_CONTENT_NEGOTIATION_CLASS': 'myapp.negotiation.IgnoreClientContentNegotiation',
|
'DEFAULT_CONTENT_NEGOTIATION_CLASS': 'myapp.negotiation.IgnoreClientContentNegotiation',
|
||||||
}
|
}
|
||||||
|
|
||||||
You can also set the content negotiation used for an individual view, or viewset, using the `APIView` class based views.
|
You can also set the content negotiation used for an individual view, or viewset, using the `APIView` class-based views.
|
||||||
|
|
||||||
from myapp.negotiation import IgnoreClientContentNegotiation
|
from myapp.negotiation import IgnoreClientContentNegotiation
|
||||||
from rest_framework.response import Response
|
from rest_framework.response import Response
|
||||||
|
|
Loading…
Reference in New Issue
Block a user