mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-28 04:12:10 +01:00
Set related_query_name for GenericRelations to IPAddress
This commit is contained in:
@@ -408,7 +408,8 @@ class Interface(BaseInterface):
|
||||
ip_addresses = GenericRelation(
|
||||
to='ipam.IPAddress',
|
||||
content_type_field='assigned_object_type',
|
||||
object_id_field='assigned_object_id'
|
||||
object_id_field='assigned_object_id',
|
||||
related_query_name='vm_interface'
|
||||
)
|
||||
tags = TaggableManager(
|
||||
through=TaggedItem,
|
||||
|
||||
Reference in New Issue
Block a user