mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Document support for ObjectChildrenView
This commit is contained in:
parent
4649bc632c
commit
a0f9b5e47b
@ -52,10 +52,11 @@ This makes our view accessible at the URL `/plugins/animal-sounds/random/`. (Rem
|
|||||||
NetBox provides several generic view classes (documented below) to facilitate common operations, such as creating, viewing, modifying, and deleting objects. Plugins can subclass these views for their own use.
|
NetBox provides several generic view classes (documented below) to facilitate common operations, such as creating, viewing, modifying, and deleting objects. Plugins can subclass these views for their own use.
|
||||||
|
|
||||||
| View Class | Description |
|
| View Class | Description |
|
||||||
|--------------------|--------------------------------|
|
|----------------------|--------------------------------------------------------|
|
||||||
| `ObjectView` | View a single object |
|
| `ObjectView` | View a single object |
|
||||||
| `ObjectEditView` | Create or edit a single object |
|
| `ObjectEditView` | Create or edit a single object |
|
||||||
| `ObjectDeleteView` | Delete a single object |
|
| `ObjectDeleteView` | Delete a single object |
|
||||||
|
| `ObjectChildrenView` | A list of child objects within the context of a parent |
|
||||||
| `ObjectListView` | View a list of objects |
|
| `ObjectListView` | View a list of objects |
|
||||||
| `BulkImportView` | Import a set of new objects |
|
| `BulkImportView` | Import a set of new objects |
|
||||||
| `BulkEditView` | Edit multiple objects |
|
| `BulkEditView` | Edit multiple objects |
|
||||||
@ -99,6 +100,12 @@ Below are the class definitions for NetBox's object views. These views handle CR
|
|||||||
members:
|
members:
|
||||||
- get_object
|
- get_object
|
||||||
|
|
||||||
|
::: netbox.views.generic.ObjectChildrenView
|
||||||
|
selection:
|
||||||
|
members:
|
||||||
|
- get_children
|
||||||
|
- prep_table_data
|
||||||
|
|
||||||
## Multi-Object Views
|
## Multi-Object Views
|
||||||
|
|
||||||
Below are the class definitions for NetBox's multi-object views. These views handle simultaneous actions for sets objects. The list, import, edit, and delete views each inherit from `BaseMultiObjectView`, which is not intended to be used directly.
|
Below are the class definitions for NetBox's multi-object views. These views handle simultaneous actions for sets objects. The list, import, edit, and delete views each inherit from `BaseMultiObjectView`, which is not intended to be used directly.
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
### Plugins API
|
### Plugins API
|
||||||
|
|
||||||
|
* [#9092](https://github.com/netbox-community/netbox/issues/9092) - Add support for `ObjectChildrenView` generic view
|
||||||
* [#9414](https://github.com/netbox-community/netbox/issues/9414) - Add `clone()` method to NetBoxModel for copying instance attributes
|
* [#9414](https://github.com/netbox-community/netbox/issues/9414) - Add `clone()` method to NetBoxModel for copying instance attributes
|
||||||
|
|
||||||
### Other Changes
|
### Other Changes
|
||||||
|
Loading…
Reference in New Issue
Block a user