Skip to content

Commit 04738fa

Browse files
committed
Added format 'vnd.api+json' for the browsable API
1 parent b3599d4 commit 04738fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rest_framework_json_api/renderers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
Renderers
33
"""
44
from collections import OrderedDict
5+
56
from rest_framework import renderers
67

78
from . import utils
8-
from rest_framework.relations import RelatedField
9-
from rest_framework.settings import api_settings
109

1110

1211
class JSONRenderer(renderers.JSONRenderer):
@@ -30,6 +29,7 @@ class JSONRenderer(renderers.JSONRenderer):
3029
"""
3130

3231
media_type = 'application/vnd.api+json'
32+
format = 'vnd.api+json'
3333

3434
def render(self, data, accepted_media_type=None, renderer_context=None):
3535
# Get the resource name.

0 commit comments

Comments
 (0)