Welcome to the Treehouse Community
Looking to learn something new?
user.followers and user.following are already querysets, so what's a queryset?
A queryset is clearly a thing but Flask and Python documentation turn up no reference to what it is and how it works. Dogpile and Google point to Stackoverflow where it is described as a container for values but how the values get there or how it can actually be used is not clear (a lot of entries saying "you can't do that with queryset" is a mite unhelpful).
So where did Kenneth cover this and/or where can I find out how to use the bloody thing?
Chris FreemanTreehouse Moderator 67,989 Points
From Django docs:
A QuerySet represents a collection of objects from your database. It can have zero, one or many filters. Filters narrow down the query results based on the given parameters. In SQL terms, a QuerySet equates to a SELECT statement, and a filter is a limiting clause such as WHERE or LIMIT.
Kenneth LoveTreehouse Guest Teacher
A queryset is the results of a query, so the records returned by the ORM.