mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-26 06:32:26 +00:00
Let's have a useful displayed name for machines.
This commit is contained in:
parent
98b2e132cc
commit
9f568d4fb9
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ class Machine(RevMixin, FieldPermissionModelMixin, AclMixin, models.Model):
|
||||||
self.field_permissions = {"user": self.can_change_user}
|
self.field_permissions = {"user": self.can_change_user}
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.user) + " - " + str(self.id) + " - " + str(self.name)
|
return str(self.user) + " - " + str(self.id) + " - " + str(self.get_name)
|
||||||
|
|
||||||
|
|
||||||
class MachineType(RevMixin, AclMixin, models.Model):
|
class MachineType(RevMixin, AclMixin, models.Model):
|
||||||
|
|
Loading…
Reference in a new issue