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:
@@ -227,7 +227,7 @@ class ModelState(object):
|
||||
body['__module__'] = "__fake__"
|
||||
# Then, make a Model object
|
||||
return type(
|
||||
self.name,
|
||||
str(self.name),
|
||||
bases,
|
||||
body,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user