mirror of
https://github.com/django/django.git
synced 2025-08-19 10:10:42 +00:00
Fixed TypeError when rendering ModelState with multiple bases.
This commit is contained in:
parent
38662d11c4
commit
aba75b0d71
2 changed files with 38 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue