Missing full_clean() from custom script examples #7613

Closed
opened 2025-12-29 20:26:03 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Feb 7, 2023).

Originally assigned to: @abhi1693 on GitHub.

Change Type

Correction

Area

Customization

Proposed Changes

The sample script at https://docs.netbox.dev/en/stable/customization/custom-scripts/#example should add site.full_clean() and switch.full_clean() before the respective save() calls.

A similar issue exists for the nbshell examples at https://docs.netbox.dev/en/stable/administration/netbox-shell/#creating-and-updating-objects (but may need a slightly bigger change, since I don't think you can use a one-liner blah(...).full_clean().save()

Originally created by @candlerb on GitHub (Feb 7, 2023). Originally assigned to: @abhi1693 on GitHub. ### Change Type Correction ### Area Customization ### Proposed Changes The sample script at https://docs.netbox.dev/en/stable/customization/custom-scripts/#example should add `site.full_clean()` and `switch.full_clean()` before the respective `save()` calls. A similar issue exists for the nbshell examples at https://docs.netbox.dev/en/stable/administration/netbox-shell/#creating-and-updating-objects (but may need a slightly bigger change, since I don't think you can use a one-liner `blah(...).full_clean().save()`
adam added the status: acceptedtype: documentation labels 2025-12-29 20:26:03 +01:00
adam closed this issue 2025-12-29 20:26:03 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7613