mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-09 08:00:52 +03:00
Tweak media_type -> accepted_media_type. Need to document, but marginally less confusing
This commit is contained in:
parent
b4cd699b75
commit
3f7371c796
|
@ -21,6 +21,14 @@ class Response(SimpleTemplateResponse):
|
||||||
self.data = data
|
self.data = data
|
||||||
self.headers = headers and headers[:] or []
|
self.headers = headers and headers[:] or []
|
||||||
self.renderer = renderer
|
self.renderer = renderer
|
||||||
|
|
||||||
|
# Accepted media type is the portion of the request Accept header
|
||||||
|
# that the renderer satisfied. It could be '*/*', or somthing like
|
||||||
|
# 'application/json; indent=4'
|
||||||
|
#
|
||||||
|
# This is NOT the value that will be returned in the 'Content-Type'
|
||||||
|
# header, but we do need to know the value in case there are
|
||||||
|
# any specific parameters which affect the rendering process.
|
||||||
self.accepted_media_type = accepted_media_type
|
self.accepted_media_type = accepted_media_type
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue
Block a user