Added 'strict' meta parameter
This commit is contained in:
@@ -72,7 +72,7 @@ class BaseDocument(object):
|
||||
|
||||
# Check if there are undefined fields supplied, if so raise an
|
||||
# Exception.
|
||||
if not self._dynamic:
|
||||
if not self._dynamic and self._meta.get('strict', True):
|
||||
for var in values.keys():
|
||||
if var not in self._fields.keys() + ['id', 'pk', '_cls', '_text_score']:
|
||||
msg = (
|
||||
|
||||
Reference in New Issue
Block a user