diff --git a/_modules/apis_core/apis_entities/models.html b/_modules/apis_core/apis_entities/models.html index ddd827e93..a55f16731 100644 --- a/_modules/apis_core/apis_entities/models.html +++ b/_modules/apis_core/apis_entities/models.html @@ -252,11 +252,11 @@

Source code for apis_core.apis_entities.models

[docs] def merge_charfield(self, other, field): - print(field) res = getattr(self, field.name) if not field.choices: - if getattr(other, field.name): - res += " (" + getattr(other, field.name) + ")" + otherres = getattr(other, field.name, res) + if otherres != res: + res += f" ({otherres})" setattr(self, field.name, res)