diff options
| author | Ben Timby | 2012-01-18 22:59:30 -0500 |
|---|---|---|
| committer | Ben Timby | 2012-01-18 22:59:30 -0500 |
| commit | 0a5ca000edcd8fba1e5e5f71c7267d9f52e456a0 (patch) | |
| tree | b7ce62d60bc0aebc889a15cc6bd473d0a3ea8af1 /djangorestframework/mixins.py | |
| parent | 5f4096ca28d6c0b9ea98f43278789b38cf0d37bb (diff) | |
| download | django-rest-framework-0a5ca000edcd8fba1e5e5f71c7267d9f52e456a0.tar.bz2 | |
Docstring/whitespace fixes.
Diffstat (limited to 'djangorestframework/mixins.py')
| -rw-r--r-- | djangorestframework/mixins.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/djangorestframework/mixins.py b/djangorestframework/mixins.py index 8a31d006..15d7faf0 100644 --- a/djangorestframework/mixins.py +++ b/djangorestframework/mixins.py @@ -49,12 +49,12 @@ class RequestMixin(object): _CONTENTTYPE_PARAM = '_content_type' _CONTENT_PARAM = '_content' + parsers = () """ The set of request parsers that the view can handle. Should be a tuple/list of classes as described in the :mod:`parsers` module. """ - parsers = () @property def method(self): @@ -226,12 +226,12 @@ class ResponseMixin(object): _ACCEPT_QUERY_PARAM = '_accept' # Allow override of Accept header in URL query params _IGNORE_IE_ACCEPT_HEADER = True + renderers = () """ The set of response renderers that the view can handle. Should be a tuple/list of classes as described in the :mod:`renderers` module. """ - renderers = () # TODO: wrap this behavior around dispatch(), ensuring it works @@ -339,19 +339,19 @@ class AuthMixin(object): Simple :class:`mixin` class to add authentication and permission checking to a :class:`View` class. """ + authentication = () """ The set of authentication types that this view can handle. Should be a tuple/list of classes as described in the :mod:`authentication` module. """ - authentication = () + permissions = () """ The set of permissions that will be enforced on this view. Should be a tuple/list of classes as described in the :mod:`permissions` module. """ - permissions = () @property |
