mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-22 23:46:42 +02:00
change the return value to string
Return values must be strings.
This commit is contained in:
parent
6b99df109e
commit
e5a99646aa
|
@ -109,7 +109,7 @@ class DiskSize(models.Model):
|
|||
size = models.IntegerField()
|
||||
|
||||
def __str__(self):
|
||||
return self.size + " GB"
|
||||
return str(self.size) + " GB"
|
||||
|
||||
class Meta:
|
||||
verbose_name_plural = "Disk sizes"
|
||||
|
|
Loading…
Reference in New Issue
Block a user