Some cleanup

This commit is contained in:
Yuri Prezument 2013-01-03 08:28:17 +02:00
parent f2625fc38c
commit 3f5e938247
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ class WritableField(Field):
try:
if self._use_files:
files = files or {} # For the case when files==None
files = files or {}
native = files[field_name]
else:
native = data[field_name]

View File

@ -46,6 +46,6 @@ class FileSerializerTests(TestCase):
"""
now = datetime.datetime.now()
serializer = UploadedFileSerializer(data={'created': now}, files=None)
serializer = UploadedFileSerializer(data={'created': now})
self.assertFalse(serializer.is_valid())
self.assertIn('file', serializer.errors)