[PR #17874] [MERGED] Update adding-models.md to reflect changes to get_absolute_url #15216

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/17874
Author: @bctiemann
Created: 10/28/2024
Status: Merged
Merged: 10/29/2024
Merged by: @jeremystretch

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


📝 Commits (1)

  • 6a699f6 Update adding-models.md to reflect changes to get_absolute_url

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 docs/development/adding-models.md (+3 -1)

📄 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/17874 **Author:** [@bctiemann](https://github.com/bctiemann) **Created:** 10/28/2024 **Status:** ✅ Merged **Merged:** 10/29/2024 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `17872-adding-models-documentation-updates` --- ### 📝 Commits (1) - [`6a699f6`](https://github.com/netbox-community/netbox/commit/6a699f6537951e64ea43ddf90b48f774d0b792a6) Update adding-models.md to reflect changes to get_absolute_url ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/development/adding-models.md` (+3 -1) </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:40 +01:00
adam closed this issue 2025-12-30 00:20:40 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15216