fix occupieduniquevalues thing
This commit is contained in:
parent
cd47f06110
commit
915b527fd7
1 changed files with 1 additions and 1 deletions
|
@ -700,7 +700,7 @@ class ChangedObjectCollection(BaseSchema):
|
|||
if field.unique:
|
||||
# unique field was changed? remove unique value entry [might be readded below]
|
||||
occupied_unique_values[field_name] = {
|
||||
val: pk for val, pk in occupied_unique_values[field_name].items()
|
||||
val: pk for val, pk in occupied_unique_values.get(field_name, {}).items()
|
||||
if pk != new_operation.obj.model
|
||||
}
|
||||
if field.is_relation:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue