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/views.py | |
| parent | 5f4096ca28d6c0b9ea98f43278789b38cf0d37bb (diff) | |
| download | django-rest-framework-0a5ca000edcd8fba1e5e5f71c7267d9f52e456a0.tar.bz2 | |
Docstring/whitespace fixes.
Diffstat (limited to 'djangorestframework/views.py')
| -rw-r--r-- | djangorestframework/views.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/djangorestframework/views.py b/djangorestframework/views.py index 12c94bb6..9199d6b7 100644 --- a/djangorestframework/views.py +++ b/djangorestframework/views.py @@ -32,32 +32,32 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView): Performs request deserialization, response serialization, authentication and input validation. """ + resource = None """ The resource to use when validating requests and filtering responses, or `None` to use default behaviour. """ - resource = None + renderers = renderers.DEFAULT_RENDERERS """ List of renderers the resource can serialize the response with, ordered by preference. """ - renderers = renderers.DEFAULT_RENDERERS + parsers = parsers.DEFAULT_PARSERS """ List of parsers the resource can parse the request with. """ - parsers = parsers.DEFAULT_PARSERS + authentication = ( authentication.UserLoggedInAuthentication, + authentication.BasicAuthentication ) """ List of all authenticating methods to attempt. """ - authentication = ( authentication.UserLoggedInAuthentication, - authentication.BasicAuthentication ) + permissions = ( permissions.FullAnonAccess, ) """ List of all permissions that must be checked. """ - permissions = ( permissions.FullAnonAccess, ) @classmethod def as_view(cls, **initkwargs): |
