aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/renderers.py
diff options
context:
space:
mode:
authormarkotibold2011-05-18 22:13:48 +0200
committermarkotibold2011-05-18 22:13:48 +0200
commit92c015e0495b7cf39b0d0387fe6d376812a9ebef (patch)
tree81549ea10c2b2e3c550bea163e464d91f5925bb5 /djangorestframework/renderers.py
parent49d4e50342cd3a6e2dce9f61d379cb54a0c1c6b5 (diff)
downloaddjango-rest-framework-92c015e0495b7cf39b0d0387fe6d376812a9ebef.tar.bz2
Most of the actual work so far has been markup really.
Diffstat (limited to 'djangorestframework/renderers.py')
-rw-r--r--djangorestframework/renderers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py
index 112736d2..3e59511c 100644
--- a/djangorestframework/renderers.py
+++ b/djangorestframework/renderers.py
@@ -36,8 +36,8 @@ __all__ = (
class BaseRenderer(object):
"""
- All renderers must extend this class, set the media_type attribute,
- and override the render() function.
+ All renderers must extend this class, set the :attr:`media_type` attribute,
+ and override the :meth:`render` method.
"""
media_type = None
@@ -51,7 +51,7 @@ class BaseRenderer(object):
The requested media type is also passed to this method,
as it may contain parameters relevant to how the parser
should render the output.
- EG: 'application/json; indent=4'
+ EG: ``application/json; indent=4``
By default render simply returns the output as-is.
Override this method to provide for other behavior.
@@ -102,8 +102,8 @@ class TemplateRenderer(BaseRenderer):
A Base class provided for convenience.
Render the object simply by using the given template.
- To create a template renderer, subclass this, and set
- the ``media_type`` and ``template`` attributes
+ To create a template renderer, subclass this class, and set
+ the :attr:`media_type` and `:attr:template` attributes.
"""
media_type = None
template = None