added ints in string.format() for 2.6 compability

This commit is contained in:
Rik
2014-11-29 23:20:30 -02:00
committed by Wilson Júnior
parent 1cac35be03
commit 191a4e569e
+1 -1
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)