Re: Order_by problems

2006-11-08 Thread Pythoni
Don, Thank you very much for your help. You are right. I added a comma and now it works! L. --~--~-~--~~~---~--~~ 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@go

Re: Order_by problems

2006-11-08 Thread Don Arbow
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 t

Re: Order_by problems

2006-11-08 Thread Pythoni
Mike, Yes, there is `Word` in words.get_list(order_by=('Word')) because Word is a name of the field. Do you have any other idea where a problem could be? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "

Re: Order_by problems

2006-11-08 Thread Aidas Bendoraitis
By the way, if you are still learning Django, I would suggest you to upgrade to 0.95, because it has many API improvements and because at some point old versions won't be supported (this is my guess :) ). Good luck! Aidas Bendoraitis [aka Archatas] On 11/8/06, Mike <[EMAIL PROTECTED]> wrote: >

Re: Order_by problems

2006-11-08 Thread Mike
Hi L, Could it be that the 'W' in 'Word' in your order_by attribute is in upper-case? - Mike --~--~-~--~~~---~--~~ 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