added ints in string.format() for 2.6 compability
This commit is contained in:
parent
1cac35be03
commit
191a4e569e
@ -67,7 +67,7 @@ class BaseDocument(object):
|
||||
for var in values.keys():
|
||||
if var not in self._fields.keys() + ['id', 'pk', '_cls']:
|
||||
msg = (
|
||||
"The field '{}' does not exist on the document '{}'"
|
||||
"The field '{0}' does not exist on the document '{1}'"
|
||||
).format(var, self._class_name)
|
||||
raise FieldDoesNotExist(msg)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user