add the ip status to the DeviceInNet string represenation

This commit is contained in:
Andreas Zweili 2020-04-30 20:26:52 +02:00
parent 0ea216fc56
commit 92d0636691
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class DeviceInNet(models.Model):
verbose_name="IP Status")
def __str__(self):
return self.ip
return "{}: {}".format(self.ip, self.ip_status)
class Meta:
verbose_name_plural = "Devices in Net"