1
0
mirror of https://github.com/django/django.git synced 2025-10-28 08:06:09 +00:00

Fixed #22350 -- Consistently serialize bytes and text in migrations.

Thanks to @treyhunner and Loïc for their suggestions and review.
This commit is contained in:
Simon Charette
2014-03-31 15:25:08 -04:00
parent b82f30785f
commit 72d3889db4
13 changed files with 76 additions and 12 deletions

View File

@@ -227,7 +227,7 @@ class ModelState(object):
body['__module__'] = "__fake__"
# Then, make a Model object
return type(
self.name,
str(self.name),
bases,
body,
)