Re: If query field equals text...

2010-02-03 Thread Daniel Roseman
On Feb 3, 8:06 pm, Chris McComas wrote: > Sorry, > > I've tried a few things... > > What kind of sucks is I'm just getting an IndexError: list index out > of range which isn't very descriptive. > > I know the 'lor' query works, I tweaked my view to this: > > http://dpaste.com/154251/ > > I just pu

Re: If query field equals text...

2010-02-03 Thread Shawn Milochik
Well, the IndexError narrows down the source of the problem to any time you're trying to access something by index. What is lor.rating_recommendation? Is it a field? If so, what type? If it's a function, what is it doing internally? Also, exactly what line of what file is throwing that error? L

Re: If query field equals text...

2010-02-03 Thread Chris McComas
Sorry, I've tried a few things... What kind of sucks is I'm just getting an IndexError: list index out of range which isn't very descriptive. I know the 'lor' query works, I tweaked my view to this: http://dpaste.com/154251/ I just put a HttpResponseRedirect below the 'if lor:' to make sure th

Re: If query field equals text...

2010-02-03 Thread Shawn Milochik
On Feb 3, 2010, at 2:52 PM, Chris McComas wrote: > I'm trying to run this IF in my views, it's throwing an index out of > range error. > > http://dpaste.com/154249/ > > What have I done wrong? > Not reading this, mostly: http://catb.org/~esr/faqs/smart-questions.html To be slightly more spec

If query field equals text...

2010-02-03 Thread Chris McComas
I'm trying to run this IF in my views, it's throwing an index out of range error. http://dpaste.com/154249/ What have I done wrong? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.