mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 05:16:26 -06:00
Merge e146067cfd
into aab1fab445
This commit is contained in:
commit
7642184e0b
23
netbox/dcim/migrations/0026_rack_group.py
Normal file
23
netbox/dcim/migrations/0026_rack_group.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.10.5 on 2017-01-18 11:16
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dcim', '0025_devicetype_add_interface_ordering'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='rack',
|
||||
options={'ordering': ['site', 'name', 'group']},
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='rack',
|
||||
unique_together=set([('site', 'facility_id'), ('site', 'name', 'group')]),
|
||||
),
|
||||
]
|
@ -403,9 +403,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