From 9f568d4fb976c077cebe22c4bac73ba947a7751f Mon Sep 17 00:00:00 2001 From: Hugo Levy-Falk Date: Mon, 1 Jun 2020 11:24:23 +0200 Subject: [PATCH] Let's have a useful displayed name for machines. --- machines/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machines/models.py b/machines/models.py index 6d7a041b..3925e236 100644 --- a/machines/models.py +++ b/machines/models.py @@ -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):