Merge pull request #1863 from bagerard/fix_string_format_bug

Fix string formatting bug in ReferenceField.validate
This commit is contained in:
erdenezul 2018-09-01 19:52:37 +08:00 committed by GitHub
commit 1b0c761fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1160,8 +1160,7 @@ class ReferenceField(BaseField):
):
self.error(
'%s is not an instance of abstract reference type %s' % (
self.document_type._class_name
)
value, self.document_type._class_name)
)
def lookup_member(self, member_name):