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:
Andreas Zweili 2017-12-24 23:47:53 +01:00
parent e5a99646aa
commit eb4ea91d9b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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):