Changes between Initial Version and Version 2 of Ticket #25676


Ignore:
Timestamp:
Nov 4, 2015, 12:50:21 PM (9 years ago)
Author:
YJD
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25676

    • Property Keywords Queryset.extra added; queryset extra calculated field removed
    • Property Version 1.81.7
  • Ticket #25676 – Description

    initial v2  
    11After reading that Queryset.extra will be deprecated in the future, I was unable to find alternative methods to sorting on a calculated field.  All I'm doing is a simple profit margin calculation, i.e. net income / net sales, and wish to be able to sort that field in a queryset that may or may not be sliced/filtered.
     2
     3Also, if I wanted to filter, I also had to add
     4{{{
     5 where=['net_income / net_sales >= %s'],
     6 params=['0.5']
     7}}}
Back to Top