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
|
|
@ -12,6 +12,7 @@ class DynamicDocTest(unittest.TestCase):
|
|||
|
||||
class Person(DynamicDocument):
|
||||
name = StringField()
|
||||
meta = {'allow_inheritance': True}
|
||||
|
||||
Person.drop_collection()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue