Skip to content

Fixes #419: Register Branch custom permission actions#459

Draft
jnovinger wants to merge 2 commits intomainfrom
419-register-branch-custom-actions
Draft

Fixes #419: Register Branch custom permission actions#459
jnovinger wants to merge 2 commits intomainfrom
419-register-branch-custom-actions

Conversation

@jnovinger
Copy link
Copy Markdown
Contributor

Fixes: #419

Register the five Branch model custom actions (sync, merge, migrate, revert, archive) with NetBox core via register_model_actions(). This makes them discoverable as checkboxes in the ObjectPermission form instead of requiring freeform text entry.

Depends on netbox-community/netbox#21357.

@jnovinger jnovinger requested review from a team and jeremystretch and removed request for a team March 10, 2026 18:29
@jnovinger jnovinger marked this pull request as draft March 10, 2026 18:29
@jnovinger
Copy link
Copy Markdown
Contributor Author

jnovinger commented Mar 10, 2026

Putting this in draft mode until netbox-community/netbox#21560 is merged

@jeremystretch jeremystretch removed their request for review March 27, 2026 14:23
Declare custom permission actions (sync, merge, migrate, revert,
archive) via Django's Meta.permissions on the Branch model. NetBox's
register_models() auto-registers these, making the imperative
register_model_actions() call in ready() unnecessary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Register Branch Custom Actions

1 participant