Closed simonw closed 4 months ago
Add the ability to rename a tag and create a PreviousTagName object recording the previous name.
PreviousTagName
blog/models.py
rename_tag
Tag
TagAdmin
blog/admin.py
blog/migrations/0021_previous_tag_name.py
blog/tests.py
For more details, open the Copilot Workspace session.
Renamed a ton of tags: https://simonwillison.net/admin/blog/previoustagname/
Here are my changes so far: https://github.com/simonw/simonwillisonblog-backup/commit/d78d6598f5ef6d864be918dea090b03b57c46cfe#diff-3be0327e375535593bb1e958b3bee14521c40f951298d5132f119bf3976d51f8
Add the ability to rename a tag and create a PreviousTagName object recording the previous name.
PreviousTagName
model inblog/models.py
.rename_tag
method toTag
model inblog/models.py
to handle renaming and createPreviousTagName
objects.TagAdmin
inblog/admin.py
to handle renaming and createPreviousTagName
objects.PreviousTagName
model inblog/migrations/0021_previous_tag_name.py
.PreviousTagName
object inblog/tests.py
.blog/tests.py
.For more details, open the Copilot Workspace session.