Skip to content

Closes #4153: Add a "renaturalize" management command #4156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2020

Conversation

jeremystretch
Copy link
Member

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.

@jeremystretch jeremystretch merged commit 00d32f0 into develop Feb 12, 2020
@jeremystretch jeremystretch deleted the 4153-renaturalize-command branch February 12, 2020 21:20
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a management command to manually recalculate naturalized values (see #3799)
1 participant