mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
Tweaked Module ordering
This commit is contained in:
parent
d096d35891
commit
690ad29ab8
19
netbox/dcim/migrations/0005_auto_20160328_2135.py
Normal file
19
netbox/dcim/migrations/0005_auto_20160328_2135.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.1 on 2016-03-28 21:35
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dcim', '0004_auto_20160328_2109'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='module',
|
||||
options={'ordering': ['device__id', 'parent__id', 'name']},
|
||||
),
|
||||
]
|
@ -682,7 +682,7 @@ class Module(models.Model):
|
||||
serial = models.CharField(max_length=50, verbose_name='Serial number', blank=True)
|
||||
|
||||
class Meta:
|
||||
ordering = ['device', 'parent', 'name']
|
||||
ordering = ['device__id', 'parent__id', 'name']
|
||||
unique_together = ['device', 'parent', 'name']
|
||||
|
||||
def __unicode__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user