[PR #13228] [MERGED] 13044 token admin #14135

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13228
Author: @arthanson
Created: 7/21/2023
Status: Merged
Merged: 7/25/2023
Merged by: @jeremystretch

Base: featureHead: 13044-token-admin


📝 Commits (10+)

  • cb2cb45 13044 move token from admin to netbox ui
  • 920c342 13044 merge
  • 53ec3d4 13044 fix urls and restrictedqueryset
  • d66318a 13044 user separate forms and filtersets for UserToken
  • 3696802 13044 add detail view template
  • 0bb61aa 13044 fix menu
  • c018cd8 13044 fix bulk import
  • a771061 13044 honor allow_token_retreival
  • 33f7d59 13044 add tests
  • 15b22f0 13044 fix tests

📊 Changes

21 files changed (+482 additions, -167 deletions)

View changed files

📝 netbox/netbox/navigation/menu.py (+2 -1)
📝 netbox/netbox/settings.py (+1 -0)
📝 netbox/templates/inc/profile_button.html (+1 -1)
netbox/templates/users/account/api_token.html (+0 -58)
📝 netbox/templates/users/account/base.html (+1 -1)
netbox/templates/users/account/token.html (+69 -0)
📝 netbox/templates/users/account/token_list.html (+2 -2)
netbox/templates/users/token.html (+56 -0)
📝 netbox/users/admin/__init__.py (+0 -21)
netbox/users/admin/forms.py (+0 -21)
📝 netbox/users/filtersets.py (+1 -0)
📝 netbox/users/forms/bulk_edit.py (+41 -2)
📝 netbox/users/forms/bulk_import.py (+17 -1)
📝 netbox/users/forms/filtersets.py (+35 -0)
📝 netbox/users/forms/model_forms.py (+25 -3)
netbox/users/migrations/0005_usertoken.py (+25 -0)
📝 netbox/users/models.py (+22 -2)
📝 netbox/users/tables.py (+36 -9)
📝 netbox/users/tests/test_views.py (+51 -1)
📝 netbox/users/urls.py (+11 -3)

...and 1 more files

📄 Description

Fixes: #13044


🔄 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/13228 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 7/21/2023 **Status:** ✅ Merged **Merged:** 7/25/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13044-token-admin` --- ### 📝 Commits (10+) - [`cb2cb45`](https://github.com/netbox-community/netbox/commit/cb2cb4500d4b32678051ce54f15a74243af99441) 13044 move token from admin to netbox ui - [`920c342`](https://github.com/netbox-community/netbox/commit/920c34231c100cab13dfd61f659cdc812e971e2a) 13044 merge - [`53ec3d4`](https://github.com/netbox-community/netbox/commit/53ec3d43e7cfe4e691c391d24487e9a1ff2f7394) 13044 fix urls and restrictedqueryset - [`d66318a`](https://github.com/netbox-community/netbox/commit/d66318aa3617a2575bb051f9561acb3cfdca32a0) 13044 user separate forms and filtersets for UserToken - [`3696802`](https://github.com/netbox-community/netbox/commit/36968024ee05293d8ac6db0e2b85767ae2faa812) 13044 add detail view template - [`0bb61aa`](https://github.com/netbox-community/netbox/commit/0bb61aa9574d4be1ccc361addd770e82a3eb5b63) 13044 fix menu - [`c018cd8`](https://github.com/netbox-community/netbox/commit/c018cd88645183448ee0d3cf35fd90e7e6df29e7) 13044 fix bulk import - [`a771061`](https://github.com/netbox-community/netbox/commit/a771061c45f1ada358145c1ef180bc8ee0ea5e17) 13044 honor allow_token_retreival - [`33f7d59`](https://github.com/netbox-community/netbox/commit/33f7d59148e8331c319056d9ae2175bfb54c5443) 13044 add tests - [`15b22f0`](https://github.com/netbox-community/netbox/commit/15b22f0e725f64a5b058cda101ca53daae5e4324) 13044 fix tests ### 📊 Changes **21 files changed** (+482 additions, -167 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/navigation/menu.py` (+2 -1) 📝 `netbox/netbox/settings.py` (+1 -0) 📝 `netbox/templates/inc/profile_button.html` (+1 -1) ➖ `netbox/templates/users/account/api_token.html` (+0 -58) 📝 `netbox/templates/users/account/base.html` (+1 -1) ➕ `netbox/templates/users/account/token.html` (+69 -0) 📝 `netbox/templates/users/account/token_list.html` (+2 -2) ➕ `netbox/templates/users/token.html` (+56 -0) 📝 `netbox/users/admin/__init__.py` (+0 -21) ➖ `netbox/users/admin/forms.py` (+0 -21) 📝 `netbox/users/filtersets.py` (+1 -0) 📝 `netbox/users/forms/bulk_edit.py` (+41 -2) 📝 `netbox/users/forms/bulk_import.py` (+17 -1) 📝 `netbox/users/forms/filtersets.py` (+35 -0) 📝 `netbox/users/forms/model_forms.py` (+25 -3) ➕ `netbox/users/migrations/0005_usertoken.py` (+25 -0) 📝 `netbox/users/models.py` (+22 -2) 📝 `netbox/users/tables.py` (+36 -9) 📝 `netbox/users/tests/test_views.py` (+51 -1) 📝 `netbox/users/urls.py` (+11 -3) _...and 1 more files_ </details> ### 📄 Description <!-- Thank you for your interest in contributing to NetBox! Please note that our contribution policy requires that a feature request or bug report be approved and assigned prior to opening a pull request. This helps avoid waste time and effort on a proposed change that we might not be able to accept. IF YOUR PULL REQUEST DOES NOT REFERENCE AN ISSUE WHICH HAS BEEN ASSIGNED TO YOU, IT WILL BE CLOSED AUTOMATICALLY. Please specify your assigned issue number on the line below. --> ### Fixes: #13044 <!-- Please include a summary of the proposed changes below. --> --- <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:22:44 +01:00
adam closed this issue 2025-12-29 23:22:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14135