Added FutureWarning for inherited classes not declaring allow_inheritance
Refs #437
This commit is contained in:
@@ -12,6 +12,7 @@ class DynamicDocTest(unittest.TestCase):
|
||||
|
||||
class Person(DynamicDocument):
|
||||
name = StringField()
|
||||
meta = {'allow_inheritance': True}
|
||||
|
||||
Person.drop_collection()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user