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 that was working and it is working, so the problem as I can tell is with the line(s) if lor.rating_recommendation == "I highly recommend this applicant without any reservations." I tried to change it to http://dpaste.com/154252/ but that's not right and threw a bad syntax error. The field rating_recommendation is a CharField in my model/db. On Feb 3, 2:58 pm, Shawn Milochik <[email protected]> wrote: > 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 specific, what exactly have you tried to find the cause > of this problem? Notice I say 'cause,' and not 'solution.' > > Shawn -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

