- Notifications
You must be signed in to change notification settings - Fork302
Handle zero as valid pk/id in get_resource_id util method#1245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Handle zero as valid pk/id in get_resource_id util method#1245
Uh oh!
There was an error while loading.Please reload this page.
Conversation
- update tests to include cases where ID is zero
@sliverc please review this and let me know if anything needs to be changed/added. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great job. Thanks for your work. I have only updated it slightly to avoid double lookup (hasattr) for performance reasons. Ready for merging.
75a5424
intodjango-json-api:mainUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Fixes#1244
Description of the Change
Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS