Fixed TypeError when rendering ModelState with multiple bases.

This commit is contained in:
Baptiste Mispelon 2013-12-06 00:55:31 +01:00
parent 38662d11c4
commit aba75b0d71
2 changed files with 38 additions and 12 deletions

View file

@ -176,7 +176,7 @@ class ModelState(object):
for base in self.bases
)
if None in bases:
raise InvalidBasesError("Cannot resolve one or more bases from %r" % self.bases)
raise InvalidBasesError("Cannot resolve one or more bases from %r" % (self.bases,))
# Turn fields into a dict for the body, add other bits
body = dict(self.fields)
body['Meta'] = meta