{"action":"created","issue":{"url":"https://api.github.com/repos/ydaniv/django-rest-assured/issues/11","labels_url":"https://api.github.com/repos/ydaniv/django-rest-assured/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/ydaniv/django-rest-assured/issues/11/comments","events_url":"https://api.github.com/repos/ydaniv/django-rest-assured/issues/11/events","html_url":"https://github.com/ydaniv/django-rest-assured/issues/11","id":73676938,"number":11,"title":"Make work with HyperlinkedModelSerializer ","user":{"login":"andersondborges","id":1335136,"avatar_url":"https://avatars.githubusercontent.com/u/1335136?v=3","gravatar_id":"","url":"https://api.github.com/users/andersondborges","html_url":"https://github.com/andersondborges","followers_url":"https://api.github.com/users/andersondborges/followers","following_url":"https://api.github.com/users/andersondborges/following{/other_user}","gists_url":"https://api.github.com/users/andersondborges/gists{/gist_id}","starred_url":"https://api.github.com/users/andersondborges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersondborges/subscriptions","organizations_url":"https://api.github.com/users/andersondborges/orgs","repos_url":"https://api.github.com/users/andersondborges/repos","events_url":"https://api.github.com/users/andersondborges/events{/privacy}","received_events_url":"https://api.github.com/users/andersondborges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-06T16:54:44Z","updated_at":"2015-05-07T19:04:05Z","closed_at":null,"body":"should validate hyperlink in _update_check_db not just id to ForeignKey"},"comment":{"url":"https://api.github.com/repos/ydaniv/django-rest-assured/issues/comments/99982091","html_url":"https://github.com/ydaniv/django-rest-assured/issues/11#issuecomment-99982091","issue_url":"https://api.github.com/repos/ydaniv/django-rest-assured/issues/11","id":99982091,"user":{"login":"ydaniv","id":116658,"avatar_url":"https://avatars.githubusercontent.com/u/116658?v=3","gravatar_id":"","url":"https://api.github.com/users/ydaniv","html_url":"https://github.com/ydaniv","followers_url":"https://api.github.com/users/ydaniv/followers","following_url":"https://api.github.com/users/ydaniv/following{/other_user}","gists_url":"https://api.github.com/users/ydaniv/gists{/gist_id}","starred_url":"https://api.github.com/users/ydaniv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ydaniv/subscriptions","organizations_url":"https://api.github.com/users/ydaniv/orgs","repos_url":"https://api.github.com/users/ydaniv/repos","events_url":"https://api.github.com/users/ydaniv/events{/privacy}","received_events_url":"https://api.github.com/users/ydaniv/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T19:04:04Z","updated_at":"2015-05-07T19:04:04Z","body":"aha, I see. excellent point! Thanks!\n\nbasically you can override to transform the expected result into a url\nusing `reverse ()`, but I'll see if its possible to do some introspection\nand automatically check for a url instead.\nבתאריך 7 במאי 2015 21:30,‏ \"andersondborges\" <notifications@github.com> כתב:\n\n> You right, the _update_check_db check for instance in the DB, but when the\n> the is a ForeignKey on the serialiazer and the this ForeignKey is a\n> HyperlinkedModelSerializer, the serielizer expect a URL to this foreignkey\n> not the id.\n>\n> ex:\n> assertEqual(attribute, results.get(key, value))\n> AssertionError: u'470' != u'/api/v1/my-url/470/'\n>\n> in the instance db the foreignkey is a id but in the results the\n> foreignkey on the serielizer is a URL.\n>\n>\n> http://www.django-rest-framework.org/api-guide/serializers/#hyperlinkedmodelserializer\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/ydaniv/django-rest-assured/issues/11#issuecomment-99969680>\n> .\n>\n"}}