[Fixed]-Django REST framework: deserializing an existing foreign key fails

1👍

OrganizationSerializer is set with the readonly option => you won’t get anything to match the current organization.

You should take a look at : http://www.django-rest-framework.org/api-guide/relations/#primarykeyrelatedfield

Leave a comment