title: How to get sum of amount of distinct name
body: <pre><code>poi = booking_models.TestBooking.objects.filter(customer_visit=instance).values_list(&quot;package__package_name&quot;, &quot;amount&quot;).order_by(&quot;package&quot;).distinct()
  </code></pre>
  <p>Output of poi = <code>[(None, 392.0), (None, 530.0), ('RahulNewPaackage', 3999.0), ('Suraj pkg today all', 699.0), ('suraj 44', 599.0)]</code></p>
  <p>So i want to get sum of these amounts. So sum will be 6219. I tried aggregate method but it does not work with order_by and without order_by distinct() does not work. So How to achieve this. Thank you !!</p>