Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Allow UUID model IDs #55

Merged
merged 4 commits into from
Feb 28, 2017
Merged

Fix: Allow UUID model IDs #55

merged 4 commits into from
Feb 28, 2017

Conversation

JelteF
Copy link
Contributor

@JelteF JelteF commented Feb 27, 2017

Should fix #37

@JelteF JelteF mentioned this pull request Feb 27, 2017
f_id = int(f_id)
except ValueError:
try:
f_id = uuid.UUID(f_id)
Copy link
Member

@tbarbugli tbarbugli Feb 27, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can probably get the right fn to use here from Django (eg. lookup the PK for the model and use the to_python method)

@tbarbugli tbarbugli merged commit 34dbb3e into master Feb 28, 2017
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.

UUID support for model IDs
2 participants