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 trialKayla Johnson
482 Pointscreated_at filter does not work - causes error "Does not refer to a field"
You say that created_at is bulit into Django but any time I add it to my array of list_filter it spits out an error The value of 'list_filter[1]' refers to 'created_at', which does not refer to a Field. Has this changed? I don't see it in the documentation link provided.
1 Answer
Ian Salmon
Courses Plus Student 10,687 PointsI believe that it's not built in. Rather, it's referring to an attribute of a model. Check models.py and the Course attributes. You should see 'created_at' there.
While following along at home I noticed that the is_live filter didn't work, as it was sneakily added to the workspaces Course model without mention. I had to manually add it, set the default to false, then adjust for experimenting.