From 87022a7b040440be7faa1ca766804fef348cd577 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 35549662..3069e39e 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):