mirror of
https://github.com/django/django.git
synced 2025-10-28 08:06:09 +00:00
Fixed #21438: makemigrations now detects ManyToManyFields
This commit is contained in:
@@ -100,6 +100,10 @@ class ModelState(object):
|
||||
name, path, args, kwargs = field.deconstruct()
|
||||
field_class = import_by_path(path)
|
||||
fields.append((name, field_class(*args, **kwargs)))
|
||||
for field in model._meta.local_many_to_many:
|
||||
name, path, args, kwargs = field.deconstruct()
|
||||
field_class = import_by_path(path)
|
||||
fields.append((name, field_class(*args, **kwargs)))
|
||||
# Extract the options
|
||||
options = {}
|
||||
for name in DEFAULT_NAMES:
|
||||
|
||||
Reference in New Issue
Block a user