mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-30 05:01:05 +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()
|
size = models.IntegerField()
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.size + " GB"
|
return str(self.size) + " GB"
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name_plural = "Disk sizes"
|
verbose_name_plural = "Disk sizes"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user