added ints in string.format() for 2.6 compability

This commit is contained in:
Rik 2014-07-01 15:18:01 +02:00 committed by Wilson Júnior
parent 1cac35be03
commit 191a4e569e

View File

@ -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)