8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Merge branch 'fix-machine-display-name' into 'dev'

Let's have a useful displayed name for machines.

See merge request re2o/re2o!539
This commit is contained in:
chirac 2020-06-01 14:00:50 +02:00
commit 023986f77e

View file

@ -292,7 +292,7 @@ class Machine(RevMixin, FieldPermissionModelMixin, AclMixin, models.Model):
self.field_permissions = {"user": self.can_change_user}
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):