Skip to content
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

Fix using a field name different from attribute name #45

Open
wants to merge 32 commits into
base: master
Choose a base branch
from

Conversation

tahajahangir
Copy link
Contributor

Currently overriding Field.name not works as expected:

class CollectionTest(Collection):
    new_field = StringField(name='string_attr')

I added a failing test in one commit, and next fixed it.

(This branch is based on tahajahangir/coroutine-py3, see network)

Stanislav Vilisov and others added 30 commits September 21, 2013 17:00
when call hasattr(self, '_initialized') with not initialized database
when default is not specified but min or max value is specified
you got a validation error
Conflicts:
	mongotor/node.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants