#132 Log migration
* adds basic log migration for all data types * empty users will be auto-created on log creation * drops CODELIST_INTERVENTION_HANDLER in favor of CODELIST_COMPENSATION_HANDLER * fixes bug in rendering of parent-child Konova Code label
This commit is contained in:
+2
-2
@@ -51,8 +51,8 @@ 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 or self.parent.short_name + " > "
|
||||
ret_val += self.long_name
|
||||
ret_val += (self.parent.long_name or self.parent.short_name) + " > "
|
||||
ret_val += self.long_name or ""
|
||||
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
|
||||
ret_val += f" ({self.short_name})"
|
||||
|
||||
Reference in New Issue
Block a user