As far as I know both "vi" and "queryset" are variable names and can be called "anything"
On Thursday, August 9, 2018 at 12:08:07 AM UTC+8, Jason wrote: > > also, I note you don't set the queryset field in your view class. you set > it to `vi`. that's probably an issue there > > eg > > from django.views.generic.dates import TodayArchiveView > from myapp.models import Article > class ArticleTodayArchiveView(TodayArchiveView): > queryset = Article.objects.all() <-- > date_field = "pub_date" > allow_future = True > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4f740c1b-2352-4d64-aeb9-ffbaa7d73db4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.