Support for UUID primary key field #52
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It looks like models that use
UUIDField
as the primary key are not supported because of various places where anid
is being cast to anint
. Would it make sense to cast to a pass a string from the client and parse it on the server as an int or leave it as a string if there's aValueError
?I'm willing to refactor and clean things up if this is a possible path for our solution, right now this is more like patchwork for getting support for
UUID
primary keys on my own application. And if it's worth going this direction, I'll squash and rebase my commits into a single commit for this pull request.Any thoughts would be appreciated, thanks! 👍