mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 11:26:26 -06:00
Adding Racks with the same name to different groups within same site #238
Add rack group to ordering
This commit is contained in:
parent
f8a4f1b24f
commit
b34d7054fc
@ -337,9 +337,9 @@ class Rack(CreatedUpdatedModel, CustomFieldModel):
|
||||
objects = RackManager()
|
||||
|
||||
class Meta:
|
||||
ordering = ['site', 'name']
|
||||
ordering = ['site', 'name', 'group']
|
||||
unique_together = [
|
||||
['site', 'name'],
|
||||
['site', 'name', 'group'],
|
||||
['site', 'facility_id'],
|
||||
]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user