mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-22 23:46:42 +02:00
change the string representation for raid to the project standard
This commit is contained in:
parent
b202013841
commit
5610e8d1ca
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user