ValueError exception when migrating to v2.11.5 with one or more VRFs defined #6544
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v2.11.5
Python version
3.7
Steps to Reproduce
Expected Behavior
The upgrade should complete successfully.
Observed Behavior
A ValueError exception is raised due to a bug in the way VRFs are retrieved in the migration:
It seems that Django does not like using the "faked" VRF instance returned by
apps.get_model()
for filtering. It's being cast as a string byfilter()
rather than its numeric ID beign evaluated.Altering the migration to reference the ID directly resolves the issue:
The text was updated successfully, but these errors were encountered: