JSONField loaded with null instead of default value #8759
Unanswered
mglowinski93
asked this question in
Question & Answer
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I've a JSONField in my model with
default=dict
argument.It's not clear to me why on browsable API it's loaded as
null
and not as empty dict.Any tips why it's working like that?
Thanks for help in advance.
Beta Was this translation helpful? Give feedback.
All reactions