mirror of
https://github.com/django/django.git
synced 2025-10-28 08:06:09 +00:00
Fixed #21010 -- Changed ModelState to only copy _meta.local_fields.
This commit is contained in:
@@ -70,7 +70,7 @@ class ModelState(object):
|
||||
"""
|
||||
# Deconstruct the fields
|
||||
fields = []
|
||||
for field in model._meta.fields:
|
||||
for field in model._meta.local_fields:
|
||||
name, path, args, kwargs = field.deconstruct()
|
||||
field_class = import_by_path(path)
|
||||
fields.append((name, field_class(*args, **kwargs)))
|
||||
|
||||
Reference in New Issue
Block a user