First time here? Check out the FAQ!

Revision history  [back]

added management commands:

  • delete_unused_tags (no arguments)
  • rename_tags (arguments: --from, --to, [--user-id])
  • rename_tags_id (same arguments as in 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. 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.

added management commands:

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

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

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.

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 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:

  • 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.commands that you've suggested very soon.

Give it a try. I had some dilemma on whether to mark retagging activity as The tags also may be stale in the latest activity on sidebars because of caching of the question or not. Right now the effective user will be marked as having performed the operation.template fragents, if you notice that - please post here.

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.