Merge pull request #1999 from bagerard/fix_documentation_dynamicdoc_underscore_field_undeclared

Improve DynamicDocument documentation regarding fields with underscore
This commit is contained in:
erdenezul
2019-02-18 09:33:39 +08:00
committed by GitHub
2 changed files with 72 additions and 6 deletions

View File

@@ -1016,7 +1016,7 @@ class DynamicDocument(six.with_metaclass(TopLevelDocumentMetaclass, Document)):
.. note::
There is one caveat on Dynamic Documents: fields cannot start with `_`
There is one caveat on Dynamic Documents: undeclared fields cannot start with `_`
"""
# The __metaclass__ attribute is removed by 2to3 when running with Python3