On Tue, 19 Dec 2017 17:58:35 +0000
Adam Johnson <[email protected]> wrote:
> Fair. I agree it's more flexible, but it does make "the most common
> case" of extending the ordering pretty long-winded:
>
> ordering = qs.get_ordering()
> ordering.append('new_field')
> qs = qs.order_by(*ordering)
>
I don't object to having both. I'd feel a little odd if we had APIs to
modify the ordering in non-trivial ways, but no API to retrieve it.
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/20171223194238.1999df87.shai%40platonix.com.
For more options, visit https://groups.google.com/d/optout.