another place to not get confused with many_to_many fields
This commit is contained in:
parent
e1ab9d348f
commit
16ebe2882d
1 changed files with 1 additions and 1 deletions
|
@ -741,7 +741,7 @@ class ChangedObjectCollection(BaseSchema):
|
|||
new_situation.occupied_unique_values.setdefault(
|
||||
new_operation.obj.model, {}
|
||||
).setdefault(field_name, {})[value] = new_operation.obj.id
|
||||
if field.is_relation:
|
||||
if field.is_relation and not field.many_to_many:
|
||||
# relation field was changed? add foundobjectreference
|
||||
new_situation.obj_references.setdefault(
|
||||
field.related_model._meta.model_name, {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue