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

Added more complete support for arbitrary field metadata. #1051

Closed
wants to merge 6 commits into from
Closed

Added more complete support for arbitrary field metadata. #1051

wants to merge 6 commits into from

Conversation

amcgregor
Copy link
Contributor

Fixes #916. Encapsulating superset of #705.

Review on Reviewable

@@ -88,7 +88,8 @@ def __init__(self, db_field=None, name=None, required=False, default=None,
self.null = null
self.sparse = sparse
self._owner_document = None
self.custom_data = custom_data

self.__dict__.update(metadata)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a note, this works because the BaseField has no __slots__ defined.

@landscape-bot
Copy link

Code Health
Code quality remained the same when pulling 4abdbf5 on illico:fix-916 into 1e930fe on MongoEngine:master.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.01% when pulling 7dc2478 on illico:fix-916 into 1e930fe on MongoEngine:master.

@amcgregor
Copy link
Contributor Author

Okiedokie, that merge was a bit weird.

@landscape-bot
Copy link

Code Health
Repository health increased by 0.01% when pulling f937239 on illico:fix-916 into 6f16d35 on MongoEngine:master.

@amcgregor
Copy link
Contributor Author

Closing due to inactivity/inaction.

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.

3 participants