Change conditions doc #8266

Closed
opened 2025-12-29 20:34:30 +01:00 by adam · 2 comments
Owner

Originally created by @bnoahpro on GitHub (Jun 29, 2023).

Change Type

Correction

Area

Reference

Proposed Changes

In the conditions documentation you show of how to check whether a variable is filled or not.

But when I try, I get an error Unsupported value type : <class 'NoneType'>

my code : {"attr": "custom_fields.dhcp_server", "value": null, "negate": true}

The solution proposed in the documentation does not work.

If this problem is due to an implementation error, please change the label to BUG.

Originally created by @bnoahpro on GitHub (Jun 29, 2023). ### Change Type Correction ### Area Reference ### Proposed Changes In the [conditions documentation](https://demo.netbox.dev/static/docs/reference/conditions/) you show of how to check whether a variable is filled or not. But when I try, I get an error **Unsupported value type : <class 'NoneType'>** my code : {"attr": "custom_fields.dhcp_server", "value": null, "negate": true} The solution proposed in the documentation does not work. If this problem is due to an implementation error, please change the label to BUG.
adam added the type: documentation label 2025-12-29 20:34:30 +01:00
adam closed this issue 2025-12-29 20:34:30 +01:00
Author
Owner

@abhi1693 commented on GitHub (Jun 29, 2023):

Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.

@abhi1693 commented on GitHub (Jun 29, 2023): Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports.
Author
Owner

@kkthxbye-code commented on GitHub (Jul 4, 2023):

custom_fields does not contain the custom field data but is just a reverse relation to the CustomField table. You probably want custom_field_data.

@kkthxbye-code commented on GitHub (Jul 4, 2023): `custom_fields` does not contain the custom field data but is just a reverse relation to the CustomField table. You probably want `custom_field_data`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#8266