What I am trying to do is
Sale.objects.values('pro').annotate(total_value = Sum('effective_price')).filter(total_value__gt=Decimal('600.00')).order_by('total_value');
In orm it does not return anything but when I takes it query in SQL and then execute in SQL it returns results as I want. There is a problem with filter as far as I know. I don't know why it is not working even count is working properly when I filter using the annotate variable.