mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 10:58:37 -06:00
Move Keystone migration to Other migration
This commit is contained in:
parent
2f4b566b9a
commit
c1a247b9c7
@ -5,6 +5,9 @@ def interface_type_to_slug(apps, schema_editor):
|
|||||||
Interface = apps.get_model('dcim', 'Interface')
|
Interface = apps.get_model('dcim', 'Interface')
|
||||||
Interface.objects.filter(type=32767).update(type='other')
|
Interface.objects.filter(type=32767).update(type='other')
|
||||||
|
|
||||||
|
Interface = apps.get_model('dcim', 'Interface')
|
||||||
|
Interface.objects.filter(type=32766).update(type='keystone')
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
from django.db import migrations
|
|
||||||
|
|
||||||
|
|
||||||
def interface_type_to_slug(apps, schema_editor):
|
|
||||||
Interface = apps.get_model('dcim', 'Interface')
|
|
||||||
Interface.objects.filter(type=32766).update(type='keystone')
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('dcim', '0098_devicetype_images'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.RunPython(
|
|
||||||
code=interface_type_to_slug
|
|
||||||
),
|
|
||||||
]
|
|
Loading…
Reference in New Issue
Block a user