You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I'm trying to send an OPTIONS request to a relationship view and the server raises a RuntimeError saying ResourceIdentifierObjectsSerializer must be initialized with a model class. I took a look in the code and I don't see how RelationshipView may specify the model class explicitly or implicitly. I don't have too much experience with the package itself so could someone please take a look at this?
The text was updated successfully, but these errors were encountered:
See the declaration of ResourceIdentifierObjectSerializer where it looks like the model_class and instance have to be provided as an optional argument. In the debugger, neither is set. I'm not quite sure where that is supposed to happen. Will try to find it.
The is based on iterating through a RelationShipView's fields which was happening because I was
trying to use coreapi rest_framework.schemas.get_schema_view.
But the response for coreapi and swagger are both based on application/json and not application/vnd.api+json so it's the coreapi schema, not jsonapi's.
Hi.
I'm trying to send an OPTIONS request to a relationship view and the server raises a
RuntimeError
sayingResourceIdentifierObjectsSerializer must be initialized with a model class
. I took a look in the code and I don't see howRelationshipView
may specify the model class explicitly or implicitly. I don't have too much experience with the package itself so could someone please take a look at this?The text was updated successfully, but these errors were encountered: