Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Commit f2e1e29

Browse files
committed
Rename IgnoreClientContentNegotiation to JSONSchemaContentNegotiation.
1 parent 5daacfc commit f2e1e29

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ Install app in Django and add content negotiation class to settings.py::
3636
REST_FRAMEWORK = {
3737
...
3838
'DEFAULT_CONTENT_NEGOTIATION_CLASS':
39-
'rest_framework_schemaform.negotiation.IgnoreClientContentNegotiation',
39+
'rest_framework_schemaform.negotiation.JSONSchemaContentNegotiation',
40+
'DEFAULT_RENDERER_CLASSES': (
41+
...
42+
'rest_framework_jsonschema.renderers.JSONSchemaRenderer',
43+
),
4044
}
4145

4246

rest_framework_schemaform/negotiation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from rest_framework_schemaform.renderers import JSONSchemaRenderer
44

55

6-
class IgnoreClientContentNegotiation(BaseContentNegotiation):
6+
class JSONSchemaContentNegotiation(BaseContentNegotiation):
77

88
def select_parser(self, request, parsers):
99
"""Select the first parser in the `.parser_classes` list.

0 commit comments

Comments
 (0)