Conflicts:
	AUTHORS
	mongoengine/base.py
	tests/fields/fields.py
This commit is contained in:
Ross Lawley
2013-01-28 14:27:17 +00:00
3 changed files with 339 additions and 2 deletions

View File

@@ -128,7 +128,7 @@ class BaseField(object):
elif value_to_check not in self.choices:
msg = ('Value must be %s of %s' %
(err_msg, unicode(self.choices)))
self.error()
self.error(msg)
# check validation argument
if self.validation is not None: