[PR #15026] [MERGED] Fixes #15025: can_add() template filter should accept a model (not an instance) #14502

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/15026
Author: @jeremystretch
Created: 2/2/2024
Status: Merged
Merged: 2/2/2024
Merged by: @jeremystretch

Base: developHead: 15025-fix-can_add-filter


📝 Commits (1)

  • 25ff931 Fixes #15025: can_add() template filter should accept a model (not an instance)

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 netbox/utilities/templatetags/perms.py (+3 -2)

📄 Description

Fixes: #15025


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/15026 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/2/2024 **Status:** ✅ Merged **Merged:** 2/2/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `15025-fix-can_add-filter` --- ### 📝 Commits (1) - [`25ff931`](https://github.com/netbox-community/netbox/commit/25ff9314f5b9f87fed193b9af4c70e5a52b11188) Fixes #15025: can_add() template filter should accept a model (not an instance) ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/utilities/templatetags/perms.py` (+3 -2) </details> ### 📄 Description ### Fixes: #15025 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 23:24:51 +01:00
adam closed this issue 2025-12-29 23:24:52 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14502