mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-17 22:49:59 +02:00
Changed Secret parent from a GenericForeignKey to ForeignKey(Device)
This commit is contained in:
31
netbox/secrets/migrations/0002_auto_20160321_1448.py
Normal file
31
netbox/secrets/migrations/0002_auto_20160321_1448.py
Normal file
@@ -0,0 +1,31 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.1 on 2016-03-21 14:48
|
||||
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'),
|
||||
('secrets', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='secret',
|
||||
name='content_type',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='secret',
|
||||
name='object_id',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='secret',
|
||||
name='device',
|
||||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='secrets', to='dcim.Device'),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
19
netbox/secrets/migrations/0003_auto_20160321_1524.py
Normal file
19
netbox/secrets/migrations/0003_auto_20160321_1524.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.1 on 2016-03-21 15:24
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('secrets', '0002_auto_20160321_1448'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='secret',
|
||||
options={'ordering': ['device', 'role', 'name'], 'permissions': (('view_secret', 'Can view secrets'),)},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user