#132 Enhancements

* adds CL288 to list of codelists
    * holds historic detail codes on biotopes (needed for proper migration of old entries but not for future, new entries)
* improves EMA finance migration
* adds fix for KonovaCodes where parents do not have any proper long_name values set but short_names instead
This commit is contained in:
2022-03-22 13:41:03 +01:00
parent 0c1ca4d173
commit f312dafa68
5 changed files with 16 additions and 13 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ class KonovaCode(models.Model):
def __str__(self, with_parent: bool = True):
ret_val = ""
if self.parent and with_parent:
ret_val += self.parent.long_name + " > "
ret_val += self.parent.long_name or self.parent.short_name + " > "
ret_val += self.long_name
if self.short_name and self.short_name != self.long_name:
# Only add short name, if we won't have stupid repition like 'thing a (thing a)' due to misused long-short names