Custom fields import of object and multiobject types #6514

Closed
opened 2025-12-29 19:41:51 +01:00 by adam · 0 comments
Owner

Originally created by @ghost on GitHub (May 26, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.3

Python version

3.8

Steps to Reproduce

Test # 1

  1. Navigate to https://demo.netbox.dev/extras/custom-fields/import/
  2. Paste the following and click Submit
name,type,content_types,weight,filter_logic
test,multiobject,dcim.site,100,loose

Test # 2

  1. Navigate to https://demo.netbox.dev/extras/custom-fields/import/
  2. Paste the following and click Submit
name,type,content_types,weight,filter_logic,object_type
test,multiobject,dcim.site,100,loose,ipam.ipaddress

Expected Behavior

The page should have documentation for the object_type field as required if type is set to object or multiobject and the form should accept and process import requests including those.

Observed Behavior

Result # 1

<class 'ValueError'>

'CustomFieldCSVForm' has no field named 'object_type'.

Python version: 3.8.10
NetBox version: 3.2.3

Result # 2

Unexpected column header "object_type" found.
Originally created by @ghost on GitHub (May 26, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.3 ### Python version 3.8 ### Steps to Reproduce Test # 1 1. Navigate to https://demo.netbox.dev/extras/custom-fields/import/ 2. Paste the following and click Submit ``` name,type,content_types,weight,filter_logic test,multiobject,dcim.site,100,loose ``` Test # 2 1. Navigate to https://demo.netbox.dev/extras/custom-fields/import/ 2. Paste the following and click Submit ``` name,type,content_types,weight,filter_logic,object_type test,multiobject,dcim.site,100,loose,ipam.ipaddress ``` ### Expected Behavior The page should have documentation for the `object_type` field as required if `type` is set to `object` or `multiobject` and the form should accept and process import requests including those. ### Observed Behavior Result # 1 ``` <class 'ValueError'> 'CustomFieldCSVForm' has no field named 'object_type'. Python version: 3.8.10 NetBox version: 3.2.3 ``` Result # 2 ``` Unexpected column header "object_type" found. ```
adam added the type: bugstatus: accepted labels 2025-12-29 19:41:51 +01:00
adam closed this issue 2025-12-29 19:41:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6514