Hey, I was wondering if anybody could assist me with this. I've got a table
for tickets and a table for replies to those tickets. The Ticket object has
a "replies" field that is defined using MultipleJoin("Reply") and the Reply
object has a "ticket" field that's defined by ForeignKey("Ticket") as well
as a DateTime column named "replyDateTime".
My question is how would I get the replies of a ticket ordered by the
"replyDateTime" field in descending order?
Reply.select(Reply.q.ticketID == Ticket.get(some id).id, orderBy =
Does return a SearchResult object of the correct replies, but it is not
On Fri, Dec 30, 2005 at 10:26:44AM -0500, J. Brown wrote:
> Reply.select(Reply.q.ticketID == Ticket.get(some id).id, orderBy =
> Does return a SearchResult object of the correct replies, but it is not
> ordered correctly.
Try to look at the SQL statements - CREATE TABLE and SELECT...
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.