title: Django template, send two arguments to template tag?
body: <p>Can anyone tell me if its possible to send multiple variables from field names to a template tag?</p>
  
  <p>this question <a href="https://stackoverflow.com/questions/420703/how-do-i-add-multiple-arguments-to-my-custom-template-filter-in-a-django-templat">How do I add multiple arguments to my custom template filter in a django template?</a> is almost there, but i dont know how to send my two field names as a string.</p>
  
  <p>my template:</p>
  
  <pre><code>    &lt;th&gt;{{ item.cost_per_month|remaining_cost:item.install_date + ',' + item.contract_length }}&lt;/th&gt;
  </code></pre>
  
  <p>the above didnt work</p>
  
  <p>my template tags:</p>
  
  <pre><code>@register.filter('contract_remainder')
  def contract_remainder(install_date, contract_term):
      months = 0
      now = datetime.now().date()
      end_date = install_date + relativedelta(years=contract_term)
  
      while True:
          mdays = monthrange(now.year, now.month)[1]
          now += timedelta(days=mdays)
          if now &lt;= end_date:
              months += 1
          else:
              break
      return months    
  
  @register.filter('remaining_cost')
  def remaining_cost(cost_per_month, remainder_vars):
      dates = remainder_vars.split(',')
      cost = contract_remainder(dates[0], dates[1]) * cost_per_month
      return cost  
  </code></pre>