Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Customizing Django Templates Template Tags and Filters Handy Dandy Filters

Arindam Roychowdhury
Arindam Roychowdhury
3,244 Points

The course.step_set does not work . But course.quiz_set or text_set works. Any idea why? I am using Django 1.11 .

from courses.models import Course c_all = Course.objects.all() c_all <QuerySet [<Course: Python Basics>, <Course: Testing in Python>]> c_all[0] <Course: Python Basics> c_all[0].step_set Traceback (most recent call last): File "<console>", line 1, in <module> AttributeError: 'Course' object has no attribute 'step_set' c1.quiz_set.all() <QuerySet [<Quiz: String Quiz>, <Quiz: Regex Quiz>, <Quiz: GK Quiz>]> c1.text_set.all() <QuerySet [<Text: DOnt know>]>