tomchristie/django-rest-framework — pull request #405 by eofs (2012-11-13 13:33:00+00:00)
Title: Unexpected exception when creating an instance with missing M2M data

You get `'NoneType' object is not iterable` exception instead of `{"user": ["Invalid pk 'None' - object does not exist."]}` *(or similar)* reponse if you try to create a new instance without M2M field data.

This is a test case to reproduce that exception.