It looks like you have stray whitespace or line breaks in the middle
of things which should be continuous text. This would, naturally, lead
to strange behavior. For example, this works:
User.objects.get(username__exact='bob')
But this probably won't:
User.objects.get(user name
__ exact='bob')
Double-check your code.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."