We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
default=0
Because of this line:
django-rest-framework-mongoengine/rest_framework_mongoengine/utils.py
Line 147 in 2ab11b3
If default is "falsy" (like if you do default=0 on an IntField) then the default is ignored.
default
IntField
The text was updated successfully, but these errors were encountered:
A workaround is to do default=lambda: 0 on your ME fields, instead of just the simple default=0.
default=lambda: 0
Sorry, something went wrong.
No branches or pull requests
Because of this line:
django-rest-framework-mongoengine/rest_framework_mongoengine/utils.py
Line 147 in 2ab11b3
If
default
is "falsy" (like if you dodefault=0
on anIntField
) then the default is ignored.The text was updated successfully, but these errors were encountered: