Сделал все как в документации выдает вот такую ошибку: Template error: In template /home/pathfinder/dev/hard/sg/polls/templates/polls/index.html, error at line 18 'str' object has no attribute 'choice_set' 8 : {% if latest_poll_list %}

9 : <ul>

10 : {% for poll in latest_poll_list %}

11 : <li><a href="{% url 'polls:detail' poll.id %}">{{ poll.question }}</a></li>

12 : {% endfor %}

13 : </ul>

14 : {% else %}

15 : <p>No polls are available.</p>

16 : {% endif %}

17 :

18 : {% show_results poll %}

Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 138. response = response.render() File "/usr/lib/python2.7/site-packages/django/template/response.py" in render 105. self.content = self.rendered_content File "/usr/lib/python2.7/site-packages/django/template/response.py" in rendered_content 82. content = template.render(context) File "/usr/lib/python2.7/site-packages/django/template/base.py" in render 140. return self._render(context) File "/usr/lib/python2.7/site-packages/django/template/base.py" in _render 134. return self.nodelist.render(context) File "/usr/lib/python2.7/site-packages/django/template/base.py" in render 830. bit = self.render_node(node, context) File "/usr/lib/python2.7/site-packages/django/template/debug.py" in render_node 74. return node.render(context) File "/usr/lib/python2.7/site-packages/django/template/base.py" in render 1185. _dict = func(resolved_args, *resolved_kwargs) File "/home/pathfinder/dev/hard/sg/polls/templatetags/poll_extras.py" in show_results 7. choices = poll.choice_set.all()

Exception Type: AttributeError at /polls/ Exception Value: 'str' object has no attribute 'choice_set'