aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/mixins.py
diff options
context:
space:
mode:
authorTom Christie2011-12-14 20:10:06 +0000
committerTom Christie2011-12-14 20:10:06 +0000
commitd53f7f45b4297aaf247aefd85093e2a0b413b4c4 (patch)
tree798c3f7b546ecaeb0449d508519e9a1425e30b47 /djangorestframework/tests/mixins.py
parent050f07e7b1c53426d5234f9aa61d9a2461a6aeff (diff)
downloaddjango-rest-framework-d53f7f45b4297aaf247aefd85093e2a0b413b4c4.tar.bz2
Use 1.4's CSRFMiddleware, so that PUT and DELETE get CSRF validation if session authentication is being used
Diffstat (limited to 'djangorestframework/tests/mixins.py')
-rw-r--r--djangorestframework/tests/mixins.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/djangorestframework/tests/mixins.py b/djangorestframework/tests/mixins.py
index 65cf4a45..3b814aa7 100644
--- a/djangorestframework/tests/mixins.py
+++ b/djangorestframework/tests/mixins.py
@@ -8,13 +8,15 @@ from djangorestframework.mixins import CreateModelMixin, PaginatorMixin
from djangorestframework.resources import ModelResource
from djangorestframework.response import Response
from djangorestframework.tests.models import CustomUser
+from djangorestframework.tests.testcases import TestModelsTestCase
from djangorestframework.views import View
-class TestModelCreation(TestCase):
+class TestModelCreation(TestModelsTestCase):
"""Tests on CreateModelMixin"""
def setUp(self):
+ super(TestModelsTestCase, self).setUp()
self.req = RequestFactory()
def test_creation(self):