serailzers.HyperlinkedRelatedField is not symmetrical #7841
Unanswered
jmarshall9120
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a valid url being posted in my data for a view.
"http://localhost:8000/api/users/1/",
This is failing validation when passed back to the serializer which is using this field to do the deserialization.
Deserializing like this:
We get this error:
After hours of debugging I've tracked it down to this line here:
match = resolve(data)
resolve
will only resolve successfully if given a path (/api/users/1/), but data at this point is an entire URL (http://localhost:8000/api/users/1/).I haven't found any known issues regarding this, but neither do see anywhere the URL gets cleaned. Any ideas on how this might be resolved?
Beta Was this translation helpful? Give feedback.
All reactions