asked 2010-11-19 10:30:45 -0500Benoit
If I miss-tagged a question with "perview" instead of "preview". I go back and fix the tag.
However, I now have a tag "perview" in the system.
Is there a way to purge those unused tags? It would be ok if I had to explicitly do it.
something like: "python manage.py purge_tag perview"
If the in tag was used, I should get an error:
"Error: Tag 'perview' is in use (in 2 questions: [148, 172])"
Showing the # of questions and the question number would be a nice bonus.
added management commands:
--to parameters can have multiple tags, so you can split, rename and merge tags. If a parameter has multiple tags, it must be quoted.
python manage.py rename_tags --from biochemistry --to 'biology chemistry'
To find out more, type
python manage.py <command> --help.
Give it a try. I had some dilemma on whether to mark retagging activity as the latest activity on the question or not. Right now the effective user will be marked as having performed the operation.
Please note that with MySQL in askbot transactions don't work, so it will be a good idea to make a backup, at least till you become comfortable with the commands.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.create your Q&A site
Asked: 2010-11-19 10:30:45 -0500
Seen: 84 times
Last updated: Nov 21 '10