Browsable API forms should replace empty values with null for fields with null=True by default, like ModelForms do #9140
Unanswered
tkoft
asked this question in
Potential Issue
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://code.djangoproject.com/ticket/4136?cversion=0&cnum_hist=33
This was fixed in Django's ModelForms long ago, but seems to be an issue on DRF's browsable API. There's no way to pass in a null field in a form on the browsable API, only empty string, so fields with null=True should convert to null as well.
Beta Was this translation helpful? Give feedback.
All reactions