Added FutureWarning for inherited classes not declaring allow_inheritance
Refs #437
This commit is contained in:
parent
b7d0d8f0cc
commit
6ecdc7b59d
7 changed files with 52 additions and 8 deletions
|
|
@ -20,6 +20,7 @@ class QuerySetTest(unittest.TestCase):
|
|||
class Person(Document):
|
||||
name = StringField()
|
||||
age = IntField()
|
||||
meta = {'allow_inheritance': True}
|
||||
self.Person = Person
|
||||
|
||||
def test_initialisation(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue