[PR #4156] [MERGED] Closes #4153: Add a "renaturalize" management command #12775

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4156
Author: @jeremystretch
Created: 2/12/2020
Status: Merged
Merged: 2/12/2020
Merged by: @jeremystretch

Base: developHead: 4153-renaturalize-command


📝 Commits (1)

  • 139f18b Closes #4153: Add a management command to manually renaturalize applicable objects (from #3799)

📊 Changes

1 file changed (+119 additions, -0 deletions)

View changed files

netbox/extras/management/commands/renaturalize.py (+119 -0)

📄 Description

Fixes: #4153

Introduces a renaturalize management command. This can be used to recalculate naturalized values for NaturalOrderingFields should the need arise.

$ manage.py renaturalize dcim.ConsolePort dcim.PowerPort
Renaturalizing 2 models.
dcim.ConsolePort.name (_name)... 123
dcim.PowerPort.name (_name)... 9004
Done.

🔄 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/4156 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 2/12/2020 **Status:** ✅ Merged **Merged:** 2/12/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `4153-renaturalize-command` --- ### 📝 Commits (1) - [`139f18b`](https://github.com/netbox-community/netbox/commit/139f18b2e59f86347ba290cb8b63c1068f27c8b0) Closes #4153: Add a management command to manually renaturalize applicable objects (from #3799) ### 📊 Changes **1 file changed** (+119 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `netbox/extras/management/commands/renaturalize.py` (+119 -0) </details> ### 📄 Description ### Fixes: #4153 Introduces a `renaturalize` management command. This can be used to recalculate naturalized values for NaturalOrderingFields should the need arise. ``` $ manage.py renaturalize dcim.ConsolePort dcim.PowerPort Renaturalizing 2 models. dcim.ConsolePort.name (_name)... 123 dcim.PowerPort.name (_name)... 9004 Done. ``` --- <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:23:32 +01:00
adam closed this issue 2025-12-29 22:23:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12775