mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
30 lines
865 B
Python
30 lines
865 B
Python
![]() |
import dcim.fields
|
||
|
import django.contrib.postgres.fields
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('dcim', '0156_cable_remove_terminations'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.RenameField(
|
||
|
model_name='cablepath',
|
||
|
old_name='path',
|
||
|
new_name='_nodes',
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='cablepath',
|
||
|
name='path',
|
||
|
field=dcim.fields.MultiNodePathField(base_field=django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=40), size=None), default=[], size=None),
|
||
|
preserve_default=False,
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='cablepath',
|
||
|
name='is_complete',
|
||
|
field=models.BooleanField(default=False),
|
||
|
),
|
||
|
]
|