>>> q = Question.objects.get(pk=1)
>>> q.choice_set.all()
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/lib64/python3.6/site-packages/django/db/models/query.py", line 251, in __repr__
return '<%s %r>' % (self.__class__.__name__, data)
File "/usr/lib64/python3.6/site-packages/django/db/models/base.py", line 513, in __repr__
return '<%s: %s>' % (self.__class__.__name__, self)
File "/home/kkondapalli/mysite/polls/models.py", line 25, in __str__
return self.question_text
AttributeError: 'Choice' object has no attribute 'question_text'