mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #6544: Fix migration error when upgrading with VRF(s) defined
This commit is contained in:
@@ -20,7 +20,7 @@ def populate_prefix_hierarchy(apps, schema_editor):
|
||||
|
||||
# Iterate through all VRFs, rebuilding each
|
||||
for vrf in VRF.objects.all():
|
||||
rebuild_prefixes(vrf)
|
||||
rebuild_prefixes(vrf.pk)
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
Reference in New Issue
Block a user