Skip to content

Rename CustomField object_type to related_object_type #15357

Closed
@jeremystretch

Description

@jeremystretch

NetBox version

v3.7.3

Feature type

Change to existing functionality

Proposed functionality

Rename the object_type ForeignKey field on CustomField to related_object_type (or any better suggestion).

Use case

Following the renaming of the content_types ManyToManyField to object_types under #15277, the name object_type can now be quite confusing. (object_types defines the types of NetBox objects on which the field appears, whereas object_type indicates the model indicated by an object or multi-object field.) Renaming this field should help avoid user confusion.

Database changes

Rename the object_type ForeignKey field on the CustomField model (effecting a migration).

External dependencies

None

Metadata

Metadata

Assignees

Labels

breaking changeThis change modifies or removes some previously documented functionalitystatus: 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