#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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user