Updated docs
This commit is contained in:
parent
f265915aa2
commit
dfdc0d92c3
3 changed files with 5 additions and 5 deletions
|
|
@ -597,7 +597,7 @@ Working with existing data
|
|||
As MongoEngine no longer defaults to needing :attr:`_cls` you can quickly and
|
||||
easily get working with existing data. Just define the document to match
|
||||
the expected schema in your database. If you have wildly varying schemas then
|
||||
a :class:`~mongoengine.DynamicDocument` might be more appropriate.
|
||||
a :class:`~mongoengine.DynamicDocument` might be more appropriate. ::
|
||||
|
||||
# Will work with data in an existing collection named 'cmsPage'
|
||||
class Page(Document):
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ document values for example::
|
|||
|
||||
.. note::
|
||||
Cleaning is only called if validation is turned on and when calling
|
||||
:meth:`~mongoengine.Document.save`.
|
||||
:meth:`~mongoengine.Document.save`.
|
||||
|
||||
Cascading Saves
|
||||
---------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue