url(r'^category/(?P<id>\d+)$', views.blog_category, name='category'),
url(r'^category/(?P<pk1>\d+)/(?P<pk2>\d+)/(?P<pk3>\d+)/$', views.index, name='category'),
class Index(generic.ListView):
model = Category
paginate_by = 3
ordering = '-id'
template_name = 'articles/index.html'
def get_queryset(self):
return Category.objects.filter(id__in=(self.kwargs('pk1'), self.kwargs('pk2'), self.kwargs('pk3')))
index = Index.as_view()