Re: order_by(params) after order_by() have no effect
On Tue, 2008-10-07 at 07:27 -0700, Ilya Novoselov wrote: [...] > It means that after order_by() call no further order_by(params) will > have effect. Is it really intended behaviour? It's a bug. I'll fix it. Thanks, Malcolm --~--~-~--~~~---~--~~ You received th
order_by(params) after order_by() have no effect
This code looks unclear to me (from django/db/models/sql/query.py) if self.extra_order_by: ordering = self.extra_order_by elif not self.default_ordering: ordering = [] else: ordering = self.order_by or self.model._meta.ordering It means