title: Django - use template tag and 'with'?
body: <p>I have a custom template tag:</p>
  
  <pre><code>def uploads_for_user(user):
      uploads = Uploads.objects.filter(uploaded_by=user, problem_upload=False)
      num_uploads = uploads.count()
      return num_uploads
  </code></pre>
  
  <p>and I'd like to do something like this, so I can pluralize properly:</p>
  
  <pre><code>{% with uploads_for_user leader as upload_count %}
      {{ upload_count }} upload{{ upload_count|pluralize }}
  {% endwith %}
  </code></pre>
  
  <p>However, <code>uploads_for_user leader</code> doesn't work in this context, because the 'with' tag expects a single value - Django returns:</p>
  
  <pre><code>TemplateSyntaxError at /upload/
  u'with' expected format is 'value as name'
  </code></pre>
  
  <p>Any idea how I can get round this?</p>