mirror of
https://github.com/django/django.git
synced 2025-10-25 14:46:09 +00:00
Merge pull request #2037 from bmispelon/invalidbaseserror
Fixed TypeError when rendering ModelState with multiple bases.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user