Inheritance is off by default (MongoEngine/mongoengine#122)
This commit is contained in:
parent
6f29d12386
commit
3d5b6ae332
20 changed files with 245 additions and 177 deletions
|
|
@ -203,7 +203,6 @@ class InheritanceTest(unittest.TestCase):
|
|||
|
||||
class Animal(Document):
|
||||
name = StringField()
|
||||
meta = {'allow_inheritance': False}
|
||||
|
||||
def create_dog_class():
|
||||
class Dog(Animal):
|
||||
|
|
@ -258,7 +257,6 @@ class InheritanceTest(unittest.TestCase):
|
|||
|
||||
class Comment(EmbeddedDocument):
|
||||
content = StringField()
|
||||
meta = {'allow_inheritance': False}
|
||||
|
||||
def create_special_comment():
|
||||
class SpecialComment(Comment):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue