filter model queryset using with template tag
<p>Is there a way to combine a queryset filter with a <code>with</code> template tag?</p>

<p>I'm trying to do the following:</p>

<pre><code>{% if request.user.is_superuser %}
   {% with arts=category.articles.all %}
{% else %}
   {% with arts=category.get_active_articles %}
{% endif %}
#other statements
   # Do some more template stuff in for loop
</code></pre>

<p>Other variations:</p>

<pre><code>{% with arts=category.articles.all if self.request.user.is_superuser else category.get_active_articles %}
</code></pre>

<p>Cant do a custom queryset in the model, since I don't have the request.</p>

<p>Is there a way to get the filtering I need? I'm trying to display different querysets for the superuser / staff and regular users so I can do some updating of states etc without having to go to the admin page.</p>