Added single and multifield uniqueness constraints
This commit is contained in:
parent
45080d3fd1
commit
4d695a3544
7 changed files with 144 additions and 24 deletions
|
|
@ -231,6 +231,9 @@ class FieldTest(unittest.TestCase):
|
|||
content = StringField()
|
||||
author = ReferenceField(User)
|
||||
|
||||
User.drop_collection()
|
||||
BlogPost.drop_collection()
|
||||
|
||||
self.assertRaises(ValidationError, ReferenceField, EmbeddedDocument)
|
||||
|
||||
user = User(name='Test User')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue