Query values may be processed before being used
This commit is contained in:
parent
196f4471be
commit
557fb19d13
6 changed files with 72 additions and 11 deletions
|
|
@ -321,6 +321,8 @@ class DocumentTest(unittest.TestCase):
|
|||
comments = ListField(EmbeddedDocumentField(Comment))
|
||||
tags = ListField(StringField())
|
||||
|
||||
BlogPost.drop_collection()
|
||||
|
||||
post = BlogPost(content='Went for a walk today...')
|
||||
post.tags = tags = ['fun', 'leisure']
|
||||
comments = [Comment(content='Good for you'), Comment(content='Yay.')]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue