title: Django custom template tag with 'parser.compile_filter(tokens[2])' doesn't work
body: <p>I tried to implement the solution proposed by T. Stone on my question "how-do-i-pass-a-lot-of-parameters-to-views-in-django" ([link text][1]).<br>
  I can't manage to get any result. It's difficult to find information about the <code>compile_filter()</code>, but as far as I understand <code>cls(queryset=parser.compile_filter(tokens[2]), template=template)</code> should render the template with the 'variable' tokens[2]. But that doesn't seems to work.</p>
  
  <p>Here is the code of my implementation:<br>
  models.py:</p>
  
  <pre><code>class SalesRecord(models.Model):
      name = models.CharField(max_length=100)
      month = models.CharField(max_length=10)
      revenue = models.IntegerField()
      def __unicode__(self):
          return self.name + " - " + self.month + " - " + str(self.revenue)
  </code></pre>
  
  <p>views.py:</p>
  
  <pre><code>def test(request, *args, **kwargs):
      name = 'John'
      monthly_sales_qs = SalesRecord.objects.filter(name=name)
      print monthly_sales_qs
      return render_to_response('test.html', locals())
  </code></pre>
  
  <p>mytags.py:</p>
  
  <pre><code>class DataForTag(template.Node):
      @classmethod
      def handle_token(cls, parser, token, template):
          tokens = token.contents.split()
          if tokens[1] != 'for':
                  raise template.TemplateSyntaxError("First argument in %r must be 'for'" % tokens[0])
  
          if len(tokens) == 3:
              return cls(queryset=parser.compile_filter(tokens[2]), template=template)
          else:
              raise template.TemplateSyntaxError("%r tag requires 2 arguments" % tokens[0])
  
      def __init__(self, queryset=None, template=None):
          self.queryset = queryset
          self.template = template
  
      def render(self, context):
          return render_to_string(self.template, {'queryset':self.queryset})
  
  @register.tag
  def render_data_table(parser, token):
      return DataForTag.handle_token(parser, token, 'testtable.html')
  </code></pre>
  
  <p>test.html:</p>
  
  <pre><code>{% load mytags %}
  {% render_data_table for monthly_sales_qs %}
  </code></pre>
  
  <p>testtable.html:</p>
  
  <pre><code>&lt;table class="tabledata"&gt;
      &lt;tr&gt;
      {% for m in queryset.month %}
          &lt;td&gt;queryset.revenue&lt;/td&gt;
       {% endfor %}
       &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The template just returns an empty page. It seems to me that the queryset is empty. 
  Does someone have an idea what I'm doing wrong? (probably some beginners stupidity ;)</p>