First time here? Check out the FAQ!
1

What is this "dummy" tag and how to remove it?
 

Hello,

I would like to remove the "dummy" tag category. Is it possible and how?

Screenshot can be found here : http://upl.lt/images/00801270107854910730.png

Thank you in advance.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
pol0nium's avatar
1
pol0nium
asked 12 years ago
Evgeny's avatar
13.2k
Evgeny
updated 12 years ago

Comments

Thanks for posting this - do you have it on a new install or migrated from a previous version? Could you tell what you did to install askbot?

Evgeny's avatar Evgeny (12 years ago)

This is a new install. I cloned the repository and followed the documentation for the installation.

pol0nium's avatar pol0nium (12 years ago)
see more comments

1 Answer

1

Please try the updated code from the repository, I hope I've fixed this issue.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

I'll try this in a minute :)

pol0nium's avatar pol0nium (12 years ago)

The updated code is not working. I also tried to add old_data = old_data.replace("[[\"dummy\",[]]]", "") in the forwards method into save_category_as_json.py but it's not working too.

pol0nium's avatar pol0nium (12 years ago)

It did work for me on a new install. Well here are two options for you: 1) - try deleting that tag via the category editor interface. 2) log in to python shell with "python manage.py shell" and then type:

from askbot.conf import settings
settings.CATEGORY_TREE

What do you see there?

Evgeny's avatar Evgeny (12 years ago)

Solution 1) worked just fine (why didn't I think about it?)

pol0nium's avatar pol0nium (12 years ago)
1

Great, I've made tag delete work without the validation of the tag name. Before the deletion was blocked because this "tag" had all sorts of forbidden characters.

Evgeny's avatar Evgeny (12 years ago)
see more comments