error in documentation; need to use keyword arg to create Comment object

This commit is contained in:
Matt Chisholm 2011-05-03 23:50:20 +02:00
parent 69989365c7
commit c2fef4e791

View File

@ -134,8 +134,8 @@ document class as the first argument::
class Page(Document): class Page(Document):
comments = ListField(EmbeddedDocumentField(Comment)) comments = ListField(EmbeddedDocumentField(Comment))
comment1 = Comment('Good work!') comment1 = Comment(content='Good work!')
comment2 = Comment('Nice article!') comment2 = Comment(content='Nice article!')
page = Page(comments=[comment1, comment2]) page = Page(comments=[comment1, comment2])
Dictionary Fields Dictionary Fields