Skip to content

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