title: Django: TypeError at /1/ context must be a dict rather than QuerySet
body: <p>this is my first Post on this Site. I am learning Django and Python right now and trying to create a Quiztool. I have hughe problems with creating my views and its hard for me to understand how to refine the data in a Queryset. In my Detail View I am raising this error:</p>
  
  <blockquote>
    <p>TypeError at /1/</p>
    
    <p>context must be a dict rather than QuerySet.</p>
    
    <p>Request Method:   GET Request URL:    <a href="http://192.168.188.146:8080/1/" rel="nofollow noreferrer">http://192.168.188.146:8080/1/</a>
    Django Version:   2.0.1 Exception Type:   TypeError Exception Value:  </p>
    
    <p>context must be a dict rather than QuerySet.</p>
    
    <p>Exception Location:
      /home/flo/Django2.0/lib/python3.5/site-packages/django/template/context.py
    in make_context, line 274 Python Executable:
      /home/flo/Django2.0/bin/python Python Version:  3.5.3 Python Path:  </p>
    
    <p>['/home/flo/Django2.0/quiztool', 
    '/home/flo/Django2.0/lib/python35.zip', 
    '/home/flo/Django2.0/lib/python3.5', 
    '/home/flo/Django2.0/lib/python3.5/plat-x86_64-linux-gnu', 
    '/home/flo/Django2.0/lib/python3.5/lib-dynload', 
    '/usr/lib/python3.5',  '/usr/lib/python3.5/plat-x86_64-linux-gnu', 
    '/home/flo/Django2.0/lib/python3.5/site-packages']</p>
    
    <p>Server time:  Thu, 1 Mar 2018 11:00:35 +0000</p>
  </blockquote>
  
  <p>I know I have to put the Queryset into a Dictonary but i dont know how to do this. </p>
  
  <p>Here is my views.py:</p>
  
  <pre><code>def index(request):
      latest_survey_list = Survey.objects.order_by('survey_id')[:5]
  
      context = {
          'latest_survey_list': latest_survey_list
      }
      return render(request, 'fragen/index.html', context)
  
  def detail(request, survey_id):
  
      question = Survey.objects.get(pk=survey_id).question.all().values()
      question_dict = {
          'question': question
      }
  
      return render(request, 'fragen/detail.html', question)
  </code></pre>
  
  <p>And here the detail.html:</p>
  
  <pre><code>{% if question %}
      &lt;ul&gt;
      {% for x in question %}
      &lt;li&gt;{{ x.question_text }}&lt;/li&gt;
      {% endfor %}
      &lt;/ul&gt;
  {% else %}
      &lt;p&gt;No questions are available.&lt;/p&gt;
  {% endif %} 
  </code></pre>
  
  <p>If u need further informations to help me just ask.</p>
  
  <p>Many thanks in advance and my
  Regards flotzen</p>