better db_field validation (#1547)
This commit is contained in:
@@ -242,7 +242,7 @@ class InstanceTest(unittest.TestCase):
|
||||
Zoo.drop_collection()
|
||||
|
||||
class Zoo(Document):
|
||||
animals = ListField(GenericReferenceField(Animal))
|
||||
animals = ListField(GenericReferenceField())
|
||||
|
||||
# Save a reference to each animal
|
||||
zoo = Zoo(animals=Animal.objects)
|
||||
|
||||
Reference in New Issue
Block a user