Re: what is the use of get_queryset

2018-01-25 Thread Andréas Kühne
Hi, There are defaults that are used for things like template_name. You should strive to follow the templates, then you don't need to write that much code. Check out the documentation for ListView:

what is the use of get_queryset

2018-01-25 Thread Mukul Agrawal
I have two snap of code below. I want to know that in the first one I used template_name='restaurants/restaurants_list.html' which is obvious if I want to use a template but in the second one I have not specified the template name even then it shows the correct web page.How? class