#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:
2022-03-24 13:42:05 +01:00
parent f621aab6e1
commit a77cfa7fe3
8 changed files with 67 additions and 10 deletions
+2 -2
View File
@@ -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})"