Tutorial part 4 - get_queryset()

2017-10-17 Thread tking
Hi, I'm new and going through the tutorial and I'm having trouble understanding how the get_queryset() function in the IndexView is called, is this just an automatic part of using generic views? I had a look elsewhere in the documentation, primarily at generic views, and other examples seem t

Tutorial part 4 - get_queryset

2017-10-17 Thread tking
Hi, I've decided to teach myself Django and I'm enjoying the tutorial which I've so far found exceptionally detailed but I'm a bit confused by the get_queryset function in the IndexView class. Essentially my question is what calls this function? Is it automatically called when the class is us