title: Access queryset of a modelChoiceField in template tag
body: <p>I have a model which has a color field</p>
  
  <pre><code>class EventCategory(models.Model):
      name = models.CharField(max_length = 10)
      color = models.CharField(max_length = 8)
  </code></pre>
  
  <p>and Event model</p>
  
  <pre><code>class Event(models.Model):
      #fields
      category = models.ForeignKey(EventCategory)
  </code></pre>
  
  <p>How can I access the modelChoice queryset in my template tag. Doing something like that doesn't work (suppose i have a form sent to my template)</p>
  
  <pre><code>&lt;select name="category" id="id_category"&gt;
      {%for category in form.category.queryset%}
          &lt;option value="{{category.pk}} style="background-color:{{category.color}};"&gt;category.name&lt;/option&gt;
      {%endfor%}  
  &lt;/select&gt;
  </code></pre>
  
  <p>I know in my python files I can do something like this:</p>
  
  <pre><code>form = EventForm()
  for c in form.fields['category'].queryset:
      print c
  </code></pre>
  
  <p>And will give me its EventCategory instance. But how can i do the same thing inside a template tag?</p>
  
  <p>EDIT Got it!!!</p>
  
  <pre><code>{%for category in in form.category.field.queryset%}
      etc
  {%endfor%}
  </code></pre>