My concern about the filter(foobar_lt=-F('baz')) issue is that it violates
the principle of least surprise: it will be accepted silently and do
something that nobody could expect unless they know a bit about the
internals. However, I think having some special case code in filter(),
annotate() and anything else that takes expressions would be OK. Provided
it throws some kind of exception, I think it resolves my concern.
I'll go ahead and try to implement this using __neg__() to invert the
ordering.
Tim
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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 http://groups.google.com/group/django-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-developers/20cd8bd0-9d5d-4ed3-9748-1412188e6726%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.