Conversation
…essors on object/multiobject fields
|
@claude /review |
|
Claude finished @bctiemann's task in 2m 29s —— View job PR Review: Add
|
…ject-cot-fields' into 385-related_name-accessor-for-object-cot-fields # Conflicts: # netbox_custom_objects/migrations/0005_customobjecttypefield_related_name_and_more.py # netbox_custom_objects/models.py
|
All review issues have been addressed. |
Fixes: #385
Adds the ability for objects targeted in object/multiobject fields to fetch the related Custom Objects via a reverse accessor.
The solution for this is reasonably simple: adding a
related_namefield to theCustomObjectTypeFieldmodel and then not disabling reverse query traversal if that field is set.Note: This PR has a 0005 migration which will conflict with #442. Since that PR is more complex and needs more work, we can merge this one first and then renumber the migrations in #442.