mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
HS: Add default name.
This commit is contained in:
1 parent
8f46f128ff
commit
5412cb4d2d
2 files changed
+6
No files matched your search
@@ -158,6 +158,9 @@ class BasicHS(SQLSubModel):
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
if self._name == "":
|
||||
return f"{self._type}{self.id + 1}"
|
||||
|
||||
return self._name
|
||||
|
||||
@name.setter
|
||||
|
||||
Reference in new issue
Block a user