tomchristie/django-rest-framework — pull request #2176 by chrstphrhrt (2014-12-02 05:27:48+00:00)
Title: Fix quickstart permission classes setting

'DEFAULT_PERMISSION_CLASSES' had resulted in:

Environment:

Request Method: GET
Request URL: http://localhost:8000/users/

Django Version: 1.7.1
Python Version: 2.7.6
Installed Applications:
('django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django_extensions',
'rest_framework',
'debug_toolbar')
Installed Middleware:
(u'debug_toolbar.middleware.DebugToolbarMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware')

Traceback:
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
111. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/django/views/decorators/csrf.py" in wrapped_view
57. return view_func(*args, **kwargs)
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/rest_framework/viewsets.py" in view
79. return self.dispatch(request, *args, **kwargs)
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
406. response = self.handle_exception(exc)
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/rest_framework/views.py" in dispatch
394. self.initial(request, *args, **kwargs)
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/rest_framework/views.py" in initial
324. self.check_permissions(request)
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/rest_framework/views.py" in check_permissions
280. for permission in self.get_permissions():
File "/Users/chrstphrhrt/Documents/code/venvs/test-drf/lib/python2.7/site-packages/rest_framework/views.py" in get_permissions
233. return [permission() for permission in self.permission_classes]

Exception Type: TypeError at /users/
Exception Value: 'type' object is not iterable