comments to clarify attribute usage in Response()

This commit is contained in:
Renato Rufino 2014-07-24 14:12:04 -03:00
parent 409e687b2f
commit f5a07603fe

View File

@ -14,6 +14,8 @@ class Response(SimpleTemplateResponse):
An HttpResponse that allows its data to be rendered into
arbitrary media types.
"""
#SimpleTemplateResponse use this property in __getstate__ to remove attrs
#from being pickled so we inherit and use it as well
rendering_attrs = SimpleTemplateResponse.rendering_attrs + \
['accepted_renderer', 'renderer_context', 'data']