Hi,

On 11 Mag, 18:23, sandro dentella <san...@e-den.it> wrote:
> Hi,
>
> i have a working declarative configuration that has a relation as
> this::
>
>   client  = relation(Cliente, backref='jobs' , lazy=False,
> order_by=status.desc)
>
> now I'd like to add a second column in the order_by field but adding a
> list doesn't seem to work. I tried:
>
>   client  = relation(Cliente, backref='jobs' , lazy=False,
> order_by=[status.desc, description])
>
> before posting the error I'd like to understand if that should be
> correct as I don't find in the docs the correct syntax, I just find
> the syntax for order_by method of query.

sorry for reposting, but I can't even understnd if the above syntax
should be allowed or not.
According to docs for 'relation':

 order_by – indicates the ordering that should be applied when loading
these items.

doesn't meant it accepts more than one column, order_by for query
does...
It's not vital but I'd like to know if it's possible and I'm just
misinterpreting the syntax.

thanks

sandro

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to