Ask Your Question
2

Spurious tags "_internal_username_1234" in autocompletion

asked 2012-10-30 23:39:34 -0600

siovene gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2012-10-30 23:44:08 -0600

Evgeny gravatar image

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()
edit flag offensive delete link more

Comments

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

siovene gravatar imagesiovene ( 2012-10-31 00:19:17 -0600 )edit

Yes, delete that one too.

Evgeny gravatar imageEvgeny ( 2012-10-31 00:20:13 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-30 23:39:34 -0600

Seen: 70 times

Last updated: Oct 30 '12