Ask Your Question
2

Spurious tags "_internal_username_1234" in autocompletion

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

siovene gravatar image siovene flag of Finland
381 7 4 24
http://www.astrobin.com/

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.

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
3

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

Evgeny gravatar image Evgeny flag of Chile
11074 50 84 182
http://askbot.org/

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

Comments

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

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

Yes, delete that one too.

Evgeny ( 2012-10-31 00:20:13 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow

subscribe to rss feed

Stats

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

Seen: 28 times

Last updated: Oct 30 '12