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

Fix bug in migration

This commit is contained in:
Jeremy Stretch
2019-12-11 20:01:10 -05:00
parent 645383509b
commit fd8913f09b

View File

@ -28,7 +28,7 @@ def ipaddress_status_to_slug(apps, schema_editor):
def ipaddress_role_to_slug(apps, schema_editor):
IPAddress = apps.get_model('ipam', 'IPAddress')
for id, slug in IPADDRESS_STATUS_CHOICES:
for id, slug in IPADDRESS_ROLE_CHOICES:
IPAddress.objects.filter(role=str(id)).update(role=slug)