1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Added parent field to device modules

This commit is contained in:
Jeremy Stretch
2016-03-28 17:10:15 -04:00
parent 69726ac443
commit cc9fc62ab9

View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-28 21:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dcim', '0003_auto_20160304_1642'),
]
operations = [
migrations.AlterModelOptions(
name='module',
options={'ordering': ['device', 'parent', 'name']},
),
migrations.AddField(
model_name='module',
name='parent',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='submodules', to='dcim.Module'),
),
migrations.AlterUniqueTogether(
name='module',
unique_together=set([('device', 'parent', 'name')]),
),
]