Fixed format string issue in mongoengine error message.

This commit is contained in:
kcarretto 2017-11-11 03:36:28 -05:00
parent ea25972257
commit 6b38ef3c9f

View File

@ -1108,7 +1108,7 @@ class ReferenceField(BaseField):
if self.document_type._meta.get('abstract') and \
not isinstance(value, self.document_type):
self.error(
'%s is not an instance of abstract reference type %s' % (
'%s is not an instance of abstract reference type %s' % (value,
self.document_type._class_name)
)