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

Fixed #27914 -- Fixed serialization of nested classes in migrations.

This commit is contained in:
John Bowen
2019-11-22 12:43:03 +00:00
committed by Mariusz Felisiak
parent 8008795a38
commit 29d8198841
2 changed files with 17 additions and 1 deletions

View File

@@ -269,7 +269,7 @@ class TypeSerializer(BaseSerializer):
if module == builtins.__name__:
return self.value.__name__, set()
else:
return "%s.%s" % (module, self.value.__name__), {"import %s" % module}
return "%s.%s" % (module, self.value.__qualname__), {"import %s" % module}
class UUIDSerializer(BaseSerializer):