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
Hello. I have found the following:
>>> from motorengine import Document,IntField >>> class Test(Document): ... foo = IntField(default=0) ... test = Test() >>> test.foo 0
Whereas
>>> from motorengine import Document,IntField >>> class Test(Document): ... foo = IntField(default=0, db_field="faa") ... test = Test() >>> test.foo None
Do you have an idea, what I am doing wrong? Or is it a bug, that the default value gets ignored in the later case?
The text was updated successfully, but these errors were encountered:
thekie
No branches or pull requests
Hello.
I have found the following:
Whereas
Do you have an idea, what I am doing wrong? Or is it a bug, that the default value gets ignored in the later case?
The text was updated successfully, but these errors were encountered: