Fixed format string issue in mongoengine error message.
This commit is contained in:
		| @@ -1108,7 +1108,7 @@ class ReferenceField(BaseField): | |||||||
|         if self.document_type._meta.get('abstract') and \ |         if self.document_type._meta.get('abstract') and \ | ||||||
|                 not isinstance(value, self.document_type): |                 not isinstance(value, self.document_type): | ||||||
|             self.error( |             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) |                     self.document_type._class_name) | ||||||
|             ) |             ) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user