aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/serializer.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/serializer.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/serializer.py')
-rw-r--r--djangorestframework/tests/serializer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/serializer.py b/djangorestframework/tests/serializer.py
index fff72c02..5f42e7e2 100644
--- a/djangorestframework/tests/serializer.py
+++ b/djangorestframework/tests/serializer.py
@@ -56,8 +56,8 @@ class TestFieldNesting(TestCase):
self.serialize = self.serializer.serialize
class M1(models.Model):
- field1 = models.CharField()
- field2 = models.CharField()
+ field1 = models.CharField(max_length=256)
+ field2 = models.CharField(max_length=256)
class M2(models.Model):
field = models.OneToOneField(M1)