[PR #17873] [CLOSED] Closes: #17872 - Update adding-models.md to reflect changes to get_absolute_url #15213

Closed
opened 2025-12-30 00:20:39 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17873
Author: @bctiemann
Created: 10/28/2024
Status: Closed

Base: developHead: 17872-adding-models-documentation-updates


📝 Commits (10+)

📊 Changes

136 files changed (+1618 additions, -1860 deletions)

View changed files

📝 .github/workflows/ci.yml (+1 -1)
📝 docs/configuration/miscellaneous.md (+8 -7)
📝 docs/development/adding-models.md (+3 -1)
📝 docs/models/circuits/circuit.md (+6 -0)
📝 docs/models/dcim/inventoryitem.md (+4 -0)
📝 docs/models/dcim/poweroutlet.md (+4 -0)
📝 docs/models/extras/branch.md (+3 -0)
📝 docs/models/extras/stagedchange.md (+3 -0)
📝 docs/plugins/development/index.md (+1 -0)
📝 docs/plugins/development/staged-changes.md (+2 -2)
netbox/circuits/api/nested_serializers.py (+0 -79)
📝 netbox/circuits/api/serializers_/circuits.py (+3 -1)
📝 netbox/circuits/filtersets.py (+1 -1)
📝 netbox/circuits/forms/bulk_edit.py (+13 -0)
📝 netbox/circuits/forms/bulk_import.py (+8 -1)
📝 netbox/circuits/forms/filtersets.py (+12 -1)
📝 netbox/circuits/forms/model_forms.py (+13 -3)
netbox/circuits/migrations/0045_circuit_distance.py (+28 -0)
netbox/circuits/migrations/0046_charfield_null_choices.py (+43 -0)
📝 netbox/circuits/models/circuits.py (+4 -11)

...and 80 more files

📄 Description

Closes: #17872

This updates the checklist for adding a new model to more accurately reflect the recommended pattern around get_absolute_url, which is now defined abstractly in the NetBoxFeatureSet mixin.

Also adds a note about GraphQL unit test behavior when prefetching related objects.


🔄 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/17873 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 10/28/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `17872-adding-models-documentation-updates` --- ### 📝 Commits (10+) - [`c60a0f4`](https://github.com/netbox-community/netbox/commit/c60a0f4f56f0cf5f259eb0b4520b84e43741e876) 16136 remove Django Admin (#17619) - [`8cd0a32`](https://github.com/netbox-community/netbox/commit/8cd0a3215ca64ef57cfe550df23c73024feb9334) 16783 Add status field to InventoryItem (#17627) - [`2c68aca`](https://github.com/netbox-community/netbox/commit/2c68aca344e64a2d6dbd8491b3c2eea759776b4c) 17195 Add color to PowerOutlet (#17623) - [`1969f0d`](https://github.com/netbox-community/netbox/commit/1969f0dc71f7c5fe75d0db54bd47b828b120fddd) fix migrations - [`3f469b0`](https://github.com/netbox-community/netbox/commit/3f469b0b0a690dfc9b2a03f95d8cea5ea846e005) 17476 Upgrade to Django 5.1 (#17620) - [`ed1327e`](https://github.com/netbox-community/netbox/commit/ed1327eeb729e0cf4805698aef74df64cf7534de) 16546 define get_absolute_url method in NetBoxModel (#17693) - [`bc597c3`](https://github.com/netbox-community/netbox/commit/bc597c3c5d038770f152d3c343b844e3f3996d92) Closes #17472: Deprecate the staged changes API - [`6568785`](https://github.com/netbox-community/netbox/commit/65687851fe093caa6382b7e9fed522b4e5316589) 16547 Add distance to Circuit (#17629) - [`256b5dc`](https://github.com/netbox-community/netbox/commit/256b5dc676c78942924bab5b071423e9ea58da77) Merge branch 'develop' into feature - [`b99c356`](https://github.com/netbox-community/netbox/commit/b99c356d1d3bab9fd6c28371f26049f961bde52b) Fix migrations conflict ### 📊 Changes **136 files changed** (+1618 additions, -1860 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+1 -1) 📝 `docs/configuration/miscellaneous.md` (+8 -7) 📝 `docs/development/adding-models.md` (+3 -1) 📝 `docs/models/circuits/circuit.md` (+6 -0) 📝 `docs/models/dcim/inventoryitem.md` (+4 -0) 📝 `docs/models/dcim/poweroutlet.md` (+4 -0) 📝 `docs/models/extras/branch.md` (+3 -0) 📝 `docs/models/extras/stagedchange.md` (+3 -0) 📝 `docs/plugins/development/index.md` (+1 -0) 📝 `docs/plugins/development/staged-changes.md` (+2 -2) ➖ `netbox/circuits/api/nested_serializers.py` (+0 -79) 📝 `netbox/circuits/api/serializers_/circuits.py` (+3 -1) 📝 `netbox/circuits/filtersets.py` (+1 -1) 📝 `netbox/circuits/forms/bulk_edit.py` (+13 -0) 📝 `netbox/circuits/forms/bulk_import.py` (+8 -1) 📝 `netbox/circuits/forms/filtersets.py` (+12 -1) 📝 `netbox/circuits/forms/model_forms.py` (+13 -3) ➕ `netbox/circuits/migrations/0045_circuit_distance.py` (+28 -0) ➕ `netbox/circuits/migrations/0046_charfield_null_choices.py` (+43 -0) 📝 `netbox/circuits/models/circuits.py` (+4 -11) _...and 80 more files_ </details> ### 📄 Description ### Closes: #17872 This updates the checklist for adding a new model to more accurately reflect the recommended pattern around `get_absolute_url`, which is now defined abstractly in the `NetBoxFeatureSet` mixin. Also adds a note about GraphQL unit test behavior when prefetching related objects. --- <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-30 00:20:39 +01:00
adam closed this issue 2025-12-30 00:20:39 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15213