remove the obsolete "GB" string and fix a variable
The GB string is obsolete because it already gets added in the DiskSize class. The attribute name is size_in_gb not size.
This commit is contained in:
parent
e5a99646aa
commit
eb4ea91d9b
|
@ -120,7 +120,7 @@ class Disk(models.Model):
|
|||
size_in_gb = models.ForeignKey(DiskSize, on_delete=models.CASCADE)
|
||||
|
||||
def __str__(self):
|
||||
return '{} {} GB'.format(self.type, self.size)
|
||||
return '{} {}'.format(self.type, self.size_in_gb)
|
||||
#+END_SRC
|
||||
|
||||
** Architecture, CpuManufacturer and Cpu
|
||||
|
|
|
@ -83,7 +83,7 @@ class Disk(models.Model):
|
|||
size_in_gb = models.ForeignKey(DiskSize, on_delete=models.CASCADE)
|
||||
|
||||
def __str__(self):
|
||||
return '{} {} GB'.format(self.type, self.size)
|
||||
return '{} {}'.format(self.type, self.size_in_gb)
|
||||
|
||||
|
||||
class Architecture(models.Model):
|
||||
|
|
Loading…
Reference in New Issue