[PR #8428] [MERGED] Closes #8334: Formally support use of generic views by plugins #13354

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/8428
Author: @jeremystretch
Created: 1/21/2022
Status: Merged
Merged: 1/21/2022
Merged by: @jeremystretch

Base: featureHead: 8334-plugins-views


📝 Commits (4)

  • 54834c4 Refactor generic views; add plugins dev documentation
  • e03593d Move get_extra_context() to base views
  • a74ed33 Move get_object() to BaseObjectView
  • 1c94625 Remove widget_attrs from BulkImportView

📊 Changes

5 files changed (+455 additions, -300 deletions)

View changed files

docs/plugins/development/generic-views.md (+96 -0)
📝 mkdocs.yml (+2 -0)
netbox/netbox/views/generic/base.py (+58 -0)
📝 netbox/netbox/views/generic/bulk_views.py (+213 -54)
📝 netbox/netbox/views/generic/object_views.py (+86 -246)

📄 Description

Closes: #8334

  • Introduce BaseObjectView and BaseMultiObjectView
  • Refactor generic view classes
  • Add documentation for the seven officially supported classes

🔄 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/8428 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 1/21/2022 **Status:** ✅ Merged **Merged:** 1/21/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `8334-plugins-views` --- ### 📝 Commits (4) - [`54834c4`](https://github.com/netbox-community/netbox/commit/54834c47f8870e7faabcd847c3270da0bd3d2884) Refactor generic views; add plugins dev documentation - [`e03593d`](https://github.com/netbox-community/netbox/commit/e03593d86f3082c19255ae24f39d1ed860a04c4d) Move get_extra_context() to base views - [`a74ed33`](https://github.com/netbox-community/netbox/commit/a74ed33b0ed53eddddad615835adc42534d246cc) Move get_object() to BaseObjectView - [`1c94625`](https://github.com/netbox-community/netbox/commit/1c946250424e849dadcf91bef5db7cc17b222518) Remove widget_attrs from BulkImportView ### 📊 Changes **5 files changed** (+455 additions, -300 deletions) <details> <summary>View changed files</summary> ➕ `docs/plugins/development/generic-views.md` (+96 -0) 📝 `mkdocs.yml` (+2 -0) ➕ `netbox/netbox/views/generic/base.py` (+58 -0) 📝 `netbox/netbox/views/generic/bulk_views.py` (+213 -54) 📝 `netbox/netbox/views/generic/object_views.py` (+86 -246) </details> ### 📄 Description ### Closes: #8334 - Introduce `BaseObjectView` and `BaseMultiObjectView` - Refactor generic view classes - Add documentation for the seven officially supported classes --- <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 22:26:56 +01:00
adam closed this issue 2025-12-29 22:26:56 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13354