2

Spurious tags "_internal_username_1234" in autocompletion
 

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.

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)
siovene's avatar
431
siovene
asked 12 years ago

Comments

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()

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

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

siovene's avatar siovene (12 years ago)

Yes, delete that one too.

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