SQLObject ordering

K

Kevin Dahlhausen

As much as I liked Middlekit, SQLObject is my new favorite. It's just
so clean. I haven't been able to figure out how to order the results
of a select by an attribute that is another SQLObject (Foreign Key):

class Car:
manufacturer = ForeignKey("Manufacturer")


class Manufacturer:
name = StringCol()


I'd like to run a select on Car and have the results return sorted by
Manufacturer name. Normally, it would just be a matter of passing the
attribute name into the select statement as an orderBy keyword, but
foreign keys work differently.

Does anybody know how to do this?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SQLObject 0.9.10 0
SQLObject 0.10.5 0
SQLObject 0.7.1 final release 0
SQLObject 0.8.0b1 0
SQLObject 0.8.0 0
SQLObject 0.9.0 3
ANN: SQLObject 0.7.1rc1 0
sqlobject performance problems (really) 1

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top