diff options
| author | Tymur Maryokhin | 2014-12-05 00:29:28 +0100 | 
|---|---|---|
| committer | Tymur Maryokhin | 2014-12-05 00:29:28 +0100 | 
| commit | d9930181ee157f51e2fcea33a3af5ea397647324 (patch) | |
| tree | 06e65d1f2a34b70c912dfa3e696611ca0cc00a65 /rest_framework/viewsets.py | |
| parent | 45dc44b2038f5533a472b015c45200b5d1ca6052 (diff) | |
| download | django-rest-framework-d9930181ee157f51e2fcea33a3af5ea397647324.tar.bz2 | |
Removed unused imports, pep8 fixes, typo fixes
Diffstat (limited to 'rest_framework/viewsets.py')
| -rw-r--r-- | rest_framework/viewsets.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py index 70d14695..88c763da 100644 --- a/rest_framework/viewsets.py +++ b/rest_framework/viewsets.py @@ -44,7 +44,7 @@ class ViewSetMixin(object):          instantiated view, we need to totally reimplement `.as_view`,          and slightly modify the view function that is created and returned.          """ -        # The suffix initkwarg is reserved for identifing the viewset type +        # The suffix initkwarg is reserved for identifying the viewset type          # eg. 'List' or 'Instance'.          cls.suffix = None @@ -98,12 +98,12 @@ class ViewSetMixin(object):          view.suffix = initkwargs.get('suffix', None)          return csrf_exempt(view) -    def initialize_request(self, request, *args, **kargs): +    def initialize_request(self, request, *args, **kwargs):          """          Set the `.action` attribute on the view,          depending on the request method.          """ -        request = super(ViewSetMixin, self).initialize_request(request, *args, **kargs) +        request = super(ViewSetMixin, self).initialize_request(request, *args, **kwargs)          self.action = self.action_map.get(request.method.lower())          return request | 
