On Nov 8, 2006, at 12:13 AM, Pythoni wrote:
>
> ....
> Now when I try:
> words.get_list(order_by=('Word'))
>
> I will get the error:
> OperationalError: (1054, "Unknown column 'mimi_words.W' in 'order
> clause'")



This is a basic Python error. You have a tuple with only one item, so  
you need to put a comma after it, otherwise Python thinks you're  
passing a tuple of letters ('W','o','r','d'), which is why you're  
seeing the field name as 'W'. Try this instead:

words.get_list(order_by=('Word',))

or use a list instead:

words.get_list(order_by=['Word'])

Don



--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to