Adding Racks with the same name to different groups within same site #238

Add rack group to ordering
This commit is contained in:
Raoul Thill 2017-01-18 12:30:52 +01:00
parent f8a4f1b24f
commit b34d7054fc

View File

@ -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'],
]