Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You are right Benoit, on retag unused tags are not hidden. On question delete they are marked as "deleted" if no other question uses them. I'll definitely write the management commands that you've suggested very soon.

The tags also may be stale in the sidebars because of caching of the template fragents, if you notice that - please post here.

You are right Benoit, on retag unused tags are not hidden. On question delete they are marked added management commands:

  • delete_unused_tags (no arguments)
  • rename_tags (arguments: --from, --to, [--user-id])
  • rename_tags_id (same arguments as "deleted" if no other question uses them. I'll definitely write the management commands that you've suggested very soon.in rename_tags)

Both --from and --to parameters can have multiple tags, so you can split, rename and merge tags.

The tags also may 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 stale in marked as having performed the sidebars because of caching of the template fragents, if you notice that - please post here.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.

added management commands:

  • delete_unused_tags (no arguments)
  • rename_tags (arguments: --from, --to, [--user-id])
  • rename_tags_id (same arguments as in rename_tags)

Both --from and --to parameters can have multiple tags, so you can split, rename and merge tags.

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.

added management commands:

  • delete_unused_tags (no arguments)
  • rename_tags (arguments: --from, --to, [--user-id])
  • rename_tags_id (same arguments as in rename_tags)rename_tags, but renames by tag id's)

Both --from and --to parameters can have multiple tags, so you can split, rename and merge tags.tags. If a parameter has multiple tags, it must be quoted.

Example:

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.