tomchristie/django-rest-framework — pull request #1104 by FreakyDug (2013-09-12 15:25:09+00:00)
Title: Fix a TypeError when a serializer is created with files but no data

2.3.8 introduced a bug that caused is_valid() to raise a TypeError if the serializer was created with a files dictionary but no data. The init_data attribute defaults to None and when WriteableField.field_from_native tries to access it on line 314 it raises a TypeError that is not caught. This change defaults the init_data attribute to an empty dictionary.