Require a version of DRF that handles GenericForeignKey correctly
LilyFoote opened this issue · 2 comments
LilyFoote commented
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.
LilyFoote commented
encode/django-rest-framework#1527 has been merged. I'm just waiting for encode/django-rest-framework#1544 now.