Skip to content

Object custom field data should return instances for object and multi-object custom fields #10052

Closed
@abhi1693

Description

@abhi1693

NetBox version

3.2.9

Feature type

Change to existing functionality

Proposed functionality

I think it could need a change for the CustomFieldMixin to work. Because get_custom_fields returns a dict where the key is the object and not the field name.

Use case

I am trying to build a custom link URL which requires querying custom object attributes. I want to access the site.slug on the custom object assigned to ClusterGroup via a plugin model, something like

object.get_custom_fields()['field_name'].site.slug

Database changes

No response

External dependencies

No response

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions