LilyFoote/rest-framework-generic-relations

Require a version of DRF that handles GenericForeignKey correctly

LilyFoote opened this issue · 2 comments

Currently the tests fail because in ModelSerializer.restore_object Django Rest Framework adds GenericForeignKey fields to m2m_data and removes the field name from the attrs dictionary.

This means that the GenericForeignKey instance is not set on obj when obj.save() is called in save_object.

This would be fixed by encode/django-rest-framework#1527.

Fixed in 3c5c881.