Merge pull request #1886 from bagerard/patch-4

Updating inheritance doc
This commit is contained in:
erdenezul
2018-09-10 09:12:50 +08:00
committed by GitHub

View File

@@ -736,6 +736,9 @@ document.::
.. note:: From 0.8 onwards :attr:`allow_inheritance` defaults .. note:: From 0.8 onwards :attr:`allow_inheritance` defaults
to False, meaning you must set it to True to use inheritance. to False, meaning you must set it to True to use inheritance.
Setting :attr:`allow_inheritance` to True should also be used in
:class:`~mongoengine.EmbeddedDocument` class in case you need to subclass it
Working with existing data Working with existing data
-------------------------- --------------------------