Would that actually end up executing the same function twice?
I didn't state it on the original question, but the biggest issue is that
on my use case, the annotation step is actually rather complicated and such
wrapped in a method on the model, and then it's up to the external code to
filter
Hello,
I'm Baginda Achmad Fadillah. I'm here because I want to be a participant in
*Google
Summer of Code 2018*. The reason of why I choose Django Software Foundation
as my organization, is because I've already heard that thing before, so
that's what makes me quite familiar with that. I've
Sure - but you can always save the expression to a variable and use it
multiple times.
mycalc = MyFunc('a', 'b')
Model.objects.filter(GreaterEqual(mycalc, 0.6)).order_by(mycalc)
I think we already have the building blocks we need to avoid adding another
queryset method.
On Saturday, 10 March