Updated docs

This commit is contained in:
Ross Lawley
2012-03-05 11:35:12 +00:00
parent 6ecdc7b59d
commit 69251e5000
2 changed files with 8 additions and 0 deletions

View File

@@ -533,10 +533,15 @@ convenient and efficient retrieval of related documents::
class Page(Document):
title = StringField(max_length=200, required=True)
meta = {'allow_inheritance': True}
# Also stored in the collection named 'page'
class DatedPage(Page):
date = DateTimeField()
.. note:: From 0.7 onwards you must declare `allow_inheritance` in the document
meta.
Working with existing data
--------------------------
To enable correct retrieval of documents involved in this kind of heirarchy,