title: Django modify queryset values before rendering on the template
body: <p>I have a <code>FormView</code> that sends data to a <code>ListView</code>.<br>
  In the <code>LisView</code> I get the data with <code>self.request.GET</code> and unsing a qustom filter I get the queryset that I need. 
  Now I need to modify some values in the queryset, but I dont find how.</p>
  
  <p>Tried indexing the queriset in the <code>ListView</code> with <code>queriset['name']</code>, or <code>queryset[1]</code>, but its tell me that the index is not suported.<br>
  Tried apply <code>queryset.values_list()</code> and <code>queriset.values()</code> then indexing, but the same result apears.<br>
  Tried to create a function in the <code>ListView</code> and apply in the template getting 'Could not parse the reminder'.<br>
  Finally tried to rest the values in the template by doing object.value - request.GET.value but I get this error:<br>
  <code>Could not parse the remainder: ' - request.GET.salary' from 'item.smg70 - request.GET.salary'</code></p>
  
  <p><strong>views.py</strong></p>
  
  <pre><code>class QuoteListView(ListView):
      model = SmgQuotesTable
  
      def get_queryset(self):
          r_get = self.request.GET
          d_get = {'name': None , 'email':None , 'couple': None, 'age': None, 'kids':None , 'salary':None}
  
          for value in d_get:
              d_get[value] = r_get[value]
  
          query_filter = Quotes().planSelector(d_get['couple'], d_get['kids'], d_get['age'])
          queryset = super(QuoteListView, self).get_queryset().filter(composite=query_filter)
  
          for i in queryset[1:]:
              i - d_get['salary']
              print(i)
  
  
          return queryset
  
  
      def salary(self, x):
          salary_get = self.request.GET('salary')
  
          return x - salary_get
  </code></pre>
  
  <p><strong>smgquotestable_list.html</strong></p>
  
  <pre><code>{% for item in object_list %}
  &lt;div class="table-responsive text-nowrap"&gt;&lt;/div&gt;
    &lt;table class="table table-striped"&gt;
        &lt;thead&gt;
          &lt;tr&gt;
            &lt;th scope="col"&gt;&lt;/th&gt;
            &lt;th scope="col"&gt;SMG01&lt;/th&gt;
            &lt;th scope="col"&gt;SMG02&lt;/th&gt;
            &lt;th scope="col"&gt;SMG10&lt;/th&gt;
            &lt;th scope="col"&gt;SMG20&lt;/th&gt;
            &lt;th scope="col"&gt;SMG30&lt;/th&gt;
            &lt;th scope="col"&gt;SMG40&lt;/th&gt;
            &lt;th scope="col"&gt;SMG50&lt;/th&gt;
            &lt;th scope="col"&gt;SMG60&lt;/th&gt;
            &lt;th scope="col"&gt;SMG70&lt;/th&gt;
          &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
          &lt;tr&gt;
            &lt;th scope="row"&gt;{{ item.composite }}&lt;/th&gt;
            &lt;td&gt;$ {{ item.smg01 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg02 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg10 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg20 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg30 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg40 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg50 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg60 }}&lt;/td&gt;
            &lt;td&gt;$ {{ item.smg70 }}&lt;/td&gt;
          &lt;/tr&gt;
        &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
  {% endfor %}
  </code></pre>
  
  <p>I need to rest the salary value send by the form to the values of smg01 etc that I get in the queryset.</p>