Invalid hyperlink - Object does not exist

208 views
Skip to first unread message

David Miranda

unread,
Nov 21, 2015, 5:54:17 AM11/21/15
to Django REST framework

Hi,


I'm having the following problem with relative hyperlinked fields when I try to create a resource:
{"resource":["Invalid hyperlink - Object does not exist."]}

Assuming that the link is as follows: http://localhost/api/resources/10/
When I make a GET to the API it returns me the object, but when is a relationship with the resource it returns me the error noted above (the relation in the database exists)


Thanks

Kaviraj Kanagaraj

unread,
Nov 25, 2015, 1:25:33 AM11/25/15
to Django REST framework
Can you be share the code of your serializer?
Reply all
Reply to author
Forward
0 new messages