[PR #15008] [MERGED] Closes #12325: Disable the Django admin UI by default #14501

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/15008
Author: @jeremystretch
Created: 2/1/2024
Status: Merged
Merged: 2/5/2024
Merged by: @jeremystretch

Base: featureHead: 12325-disable-admin-ui


📝 Commits (3)

  • f447b21 Disable the Django admin UI by default
  • 5d8d5b2 Remove outdated references to the admin UI
  • 25a0e06 Update tests

📊 Changes

19 files changed (+67 additions, -34 deletions)

View changed files

📝 docs/administration/authentication/microsoft-azure-ad.md (+1 -1)
📝 docs/administration/authentication/okta.md (+1 -1)
📝 docs/administration/authentication/overview.md (+1 -1)
📝 docs/configuration/index.md (+1 -1)
📝 docs/configuration/miscellaneous.md (+8 -0)
📝 docs/customization/custom-scripts.md (+1 -1)
📝 docs/customization/reports.md (+1 -1)
📝 docs/features/event-rules.md (+1 -1)
📝 docs/integrations/webhooks.md (+3 -3)
📝 netbox/netbox/configuration_testing.py (+2 -0)
📝 netbox/netbox/settings.py (+4 -1)
📝 netbox/netbox/tests/dummy_plugin/navigation.py (+6 -6)
📝 netbox/netbox/tests/dummy_plugin/urls.py (+2 -1)
📝 netbox/netbox/tests/dummy_plugin/views.py (+17 -0)
📝 netbox/netbox/tests/test_plugins.py (+1 -1)
📝 netbox/netbox/urls.py (+9 -11)
📝 netbox/templates/account/profile.html (+1 -1)
📝 netbox/templates/core/configrevision_restore.html (+5 -1)
📝 netbox/templates/inc/user_menu.html (+2 -2)

📄 Description

Fixes: #12325

  • Introduce the DJANGO_ADMIN_ENABLED configuration parameter (default: false)
  • Remove the "admin" link from the user menu when the Django admin UI is disabled
  • Remove obsolete references to the Django admin UI from the documentation
  • Update plugin tests

🔄 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/15008 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/1/2024 **Status:** ✅ Merged **Merged:** 2/5/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `12325-disable-admin-ui` --- ### 📝 Commits (3) - [`f447b21`](https://github.com/netbox-community/netbox/commit/f447b21cd431c495e4bb391e13559955784183f0) Disable the Django admin UI by default - [`5d8d5b2`](https://github.com/netbox-community/netbox/commit/5d8d5b2ae2c6eb0c417af23306b02b13de07af81) Remove outdated references to the admin UI - [`25a0e06`](https://github.com/netbox-community/netbox/commit/25a0e067201793b050afb4a869d3aa44e131f15c) Update tests ### 📊 Changes **19 files changed** (+67 additions, -34 deletions) <details> <summary>View changed files</summary> 📝 `docs/administration/authentication/microsoft-azure-ad.md` (+1 -1) 📝 `docs/administration/authentication/okta.md` (+1 -1) 📝 `docs/administration/authentication/overview.md` (+1 -1) 📝 `docs/configuration/index.md` (+1 -1) 📝 `docs/configuration/miscellaneous.md` (+8 -0) 📝 `docs/customization/custom-scripts.md` (+1 -1) 📝 `docs/customization/reports.md` (+1 -1) 📝 `docs/features/event-rules.md` (+1 -1) 📝 `docs/integrations/webhooks.md` (+3 -3) 📝 `netbox/netbox/configuration_testing.py` (+2 -0) 📝 `netbox/netbox/settings.py` (+4 -1) 📝 `netbox/netbox/tests/dummy_plugin/navigation.py` (+6 -6) 📝 `netbox/netbox/tests/dummy_plugin/urls.py` (+2 -1) 📝 `netbox/netbox/tests/dummy_plugin/views.py` (+17 -0) 📝 `netbox/netbox/tests/test_plugins.py` (+1 -1) 📝 `netbox/netbox/urls.py` (+9 -11) 📝 `netbox/templates/account/profile.html` (+1 -1) 📝 `netbox/templates/core/configrevision_restore.html` (+5 -1) 📝 `netbox/templates/inc/user_menu.html` (+2 -2) </details> ### 📄 Description ### Fixes: #12325 - Introduce the `DJANGO_ADMIN_ENABLED` configuration parameter (default: false) - Remove the "admin" link from the user menu when the Django admin UI is disabled - Remove obsolete references to the Django admin UI from the documentation - Update plugin tests --- <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:51 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14501