[PonyORM-list] global name 'desc' is not defined

Guy Jacks guy.jacks at gmail.com
Tue Dec 17 16:34:53 UTC 2013

transactions = Transaction.select().order_by(desc(Transaction.created))[:]

This works without the desc() method but it fails after I wrap
Transaction.created in desc().

The documentation states that the following should work:

for p in Product.select(lambda p: p.price >

Thanks in advance for any pointers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20131217/d8501d51/attachment.html>

More information about the ponyorm-list mailing list