mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-21 06:56:54 +02:00
sort disks by their type
This commit is contained in:
parent
6ab4959d2d
commit
f554bd5142
|
@ -160,6 +160,9 @@ class Disk(models.Model):
|
|||
|
||||
def __str__(self):
|
||||
return '{} {}'.format(self.type, self.size_in_gb)
|
||||
|
||||
class Meta:
|
||||
ordering = ['type']
|
||||
#+END_SRC
|
||||
|
||||
** Architecture, CpuManufacturer and Cpu
|
||||
|
|
|
@ -119,6 +119,9 @@ class Disk(models.Model):
|
|||
def __str__(self):
|
||||
return '{} {}'.format(self.type, self.size_in_gb)
|
||||
|
||||
class Meta:
|
||||
ordering = ['type']
|
||||
|
||||
|
||||
class Architecture(models.Model):
|
||||
name = models.CharField(max_length=50)
|
||||
|
|
Loading…
Reference in New Issue
Block a user