1
0
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:
jeremystretch
2021-06-04 10:53:13 -04:00
parent 0783d57459
commit 5e08b2be37
4 changed files with 11 additions and 3 deletions

View File

@@ -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):