[FIX] openupgrade_records: _inherits was not being compared

pull/2417/head
mreficent 2021-03-23 18:06:43 +01:00 committed by Stefan Rijnhart
parent 79c6c1a134
commit 5ddc029b32
3 changed files with 5 additions and 6 deletions

View File

@ -228,7 +228,7 @@ def compare_sets(old_records, new_records):
"relation",
"type",
"selection_keys",
"inherits",
"_inherits",
"stored",
"isfunction",
"isrelated",
@ -244,7 +244,7 @@ def compare_sets(old_records, new_records):
"module",
"relation",
"selection_keys",
"inherits",
"_inherits",
"stored",
"isfunction",
"isrelated",
@ -260,7 +260,7 @@ def compare_sets(old_records, new_records):
"relation",
"type",
"selection_keys",
"inherits",
"_inherits",
"stored",
"isfunction",
"isrelated",
@ -274,7 +274,7 @@ def compare_sets(old_records, new_records):
"required",
"selection_keys",
"req_default",
"inherits",
"_inherits",
"mode",
"attachment",
]

View File

@ -102,7 +102,7 @@ class UpgradeRecord(models.Model):
"req_default",
"hasdefault",
"table",
"inherits",
"_inherits",
]
template = {x: False for x in keys}

View File

@ -137,7 +137,6 @@ def log_model(model, local_registry):
"selection_keys": "",
"req_default": "",
"hasdefault": model._fields[k].default and "hasdefault" or "",
"inherits": "",
}
if v.type == "selection":
if isinstance(v.selection, (tuple, list)):