First time here? Check out the FAQ!
2

Spurious tags "_internal_username_1234" in autocompletion

  • retag add tags

Hi, suddenly my list of tag suggestions, when autocompleting the "tags" field, contains entries like this:

_internal_username_1234

That is the word "_internal_", then a username, then the ID of that user.

I have thousands of users, so these tags will be suggested often.

Any idea what happened and how to fix this? I'm using Askbot's git master.

siovene's avatar
431
siovene
asked 2012-10-30 23:39:34 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

3

Sorry we must have forgotten to clean them up in the migrations. I'll add one soon.

Right now you can do this:

python manage.py shell 
>>>from askbot.models import Tag
>>>Tag.objects.filter(name__startswith='_internal_').delete()
Evgeny's avatar
13.2k
Evgeny
answered 2012-10-30 23:44:08 -0500
edit flag offensive 0 remove flag delete link

Comments

Nice, thanks! I also have a tag that is the empty string. Can I delete it the same way?

siovene's avatar siovene (2012-10-31 00:19:17 -0500) edit

Yes, delete that one too.

Evgeny's avatar Evgeny (2012-10-31 00:20:13 -0500) edit
add a comment see more comments