Skip to content

Conversation

jerel
Copy link
Member

@jerel jerel commented Nov 24, 2015

For this (incorrect) but natural payload the related field would json.loads
the bar related attribute:

{
    "data": {
        "type": "foo",
        "attributes": {
            "bar": "1",
        }
    }
}

a json ValueError would be thrown instead of the more helpful
"Expected resource identifier object, received unicode"

For this (incorrect) payload the related field would `json.loads`
the `bar` related attribute:
``` py
{
    "data": {
        "type": "foo",
        "attributes": {
            "bar": "1",
        }
    }
}
```
a json ValueError would be thrown instead of the more helpful
"Expected resource identifier object, received unicode"
jsenecal added a commit that referenced this pull request Nov 24, 2015
…error

When a `pk` was used as a relationship value a json error was thrown
@jsenecal jsenecal merged commit bb5e823 into develop Nov 24, 2015
@jerel jerel deleted the bugfix/obscure-relation-error branch January 7, 2016 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants