change the string representation for raid to the project standard

This commit is contained in:
Andreas Zweili 2020-05-26 22:09:15 +02:00
parent b202013841
commit 5610e8d1ca

View File

@ -17,7 +17,7 @@ class Raid(models.Model):
computer = models.ForeignKey(Computer, on_delete=models.CASCADE)
def __str__(self):
return self.computer.name
return str(self.computer)
class Meta:
verbose_name_plural = "RAIDs in Computer"