First time here? Check out the FAQ!
1

Error asking questions with multiple tags
 

I have version 0.6.73 installed and everything works great. However, whenever a question is submitted with more than one tag, an error occurs. I'm frustrated because it does not seem to happen on askbot.org:

MultipleObjectsReturned at /questions/ask/ get() returned more than one Tag -- it returned 2! Lookup parameters were {'name__iexact': u'law'}

Might anyone have any insight into this? Thanks!

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)
psyklic's avatar
23
psyklic
asked 14 years ago

Comments

see more comments

1 Answer

0

It seems that somehow you have more than one character case variant of a tag name.

You should be able to fix this with a management command "fix_question_tags", but you need to know names of tags before

Please, look up usage of this and other commands in the manual.

Before that please do back up the database.

It is not clear just why this happened... There is a filter which prevents creation of tags with the variants of the case.

Also - you could think about turning on "force lowercase tags" setting in the "data entry" section.

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 14 years ago
link

Comments

Wow thank you for the fast, outstanding reply -- the management command fixed the problem! I'm going to try forcing the lowercase tags as well.
psyklic's avatar psyklic (14 years ago)
see more comments