Commit de46666a by Calen Pennington

Use .get to avoid key errors during inheritance

parent 07059d0d
......@@ -52,7 +52,7 @@ def own_metadata(module):
if field.scope != Scope.settings:
continue
if field.name in inherited_metadata and module._model_data[field.name] == inherited_metadata[field.name]:
if field.name in inherited_metadata and module._model_data.get(field.name) == inherited_metadata.get(field.name):
continue
if field.name not in module._model_data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment