-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Support 1.8's UUIDField #2432
Comments
@tomchristie First up - I cannot tell you how long this project has been putting food on my table. But not "just" supporting my family => this project is an absolute JOY to work on /read / contribute back to. From the bottom of my heart -thank you for all the time/blood/sweat/tears you've put into this amazing OSS project! Now the question I had about this issue/and the related PR ....looking over the tests I don't see a high level /acceptance like test that shows if DRF 3.x supports the ability to post with a uuid (ie- from a client app) and have it persist in the django orm w/out issue. Is this feature truly supported in DRF? If so do you have an example/know of a test or project I could look over to play with it? |
Here is the SO answer to accept a |
Seconding the s/o answer. Declare the field explicitly to override the default one that'll otherwise be created for you.
And thank you so much @toranb - wonderful start to the working day to get a comment like that. ✨ 😎 ✨ It's a pleasure to work on. |
As per comment here: #2426 (comment)
Current str field would result in...
We should validate UUID values, and handle str() of them in both the encoder, and in the serializer field.
The text was updated successfully, but these errors were encountered: