title: Problems with extending the polls application
body: <p>I added an additional Model to the polls application (see django tutorial) which is intended to be a parent for a set of questions:</p>
  
  <pre><code>models.py
  class Section(models.Model):
      section_text = models.CharField(max_length=255)
      section_description = models.TextField(blank=False)
      slug = models.SlugField(unique=True, null=True)
  
      def __unicode__(self):
          return self.section_text
  
      def save(self, *args, **kwargs):
          self.slug = slugify(self.section_text)
          super(Section, self).save(*args, **kwargs)
  
  
  class Question(models.Model):
      section = models.ForeignKey(Section)
      question_text = models.CharField(max_length=200)
      pub_date = models.DateTimeField('date published')
  
      def __unicode__(self):
          return self.question_text
  </code></pre>
  
  <p>This works fine in the admin. Each question is linked to one section.</p>
  
  <p>Displaying the sections is no problem either:</p>
  
  <pre><code>views.py
  class UmfrageView(ListView):
      model = Section
      context_object_name = 'latest_section_list'
      template_name = 'umfrage.html'
  </code></pre>
  
  <p>But if I want to pass a section via slug to DetailView it doesn't work (if I use generic.ListView instead, it displays questions from all sections):</p>
  
  <pre><code>urls.py
  url(
      regex=r'^(?P&lt;slug&gt;[-\w]+)/$',
      view=DetailView.as_view(),
      name='detail'
  ),
  
  views.py
  class DetailView(ListView):
      model = Question
      context_object_name = 'latest_question_list'
      template_name = 'detail.html'
  
  detail.html
  {% if latest_question_list%}
      {% for question in latest_question_list %}
      &lt;p&gt;{{ question.question_text }}&lt;/p&gt;
          {% for choice in question.choice_set.all %}
          &lt;input type="radio" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}" /&gt;
          &lt;label for="choice{{ forloop.counter }}"&gt;{{ choice.choice_text }}&lt;/label&gt;&lt;br /&gt;
          {% endfor %}
      {% endfor %}
  {% endif %}
  </code></pre>
  
  <p>If I use generic.DetailView</p>
  
  <pre><code>class DetailView(DetailView):
      [...]
  </code></pre>
  
  <p>the following error shows up: </p>
  
  <p>"Cannot resolve keyword u'slug' into field. Choices are: choice, id, pub_date, question_text, section"</p>
  
  <p>How do I get the set of questions from one particular section and still have an human-friendly URL via slug?</p>
  
  <p>Thanks!</p>
  
  <p>(If further code is required, I'm more than happy to update)</p>