I'm working on Django app and currently ran into a problem. I have my ListView as:
class CategoryView(ListView):
template_name = "categories.html"
def get_queryset(self):
...
...
queryset = {"category": parent, "items": items.all()}
return queryset
Is there any walkaround for paginating "items" from queryset dict? Because when I set paginate_by = xx
I get error unhashable type: 'slice'
. What is, from my understanding, and it's pretty obvious cause by the fact that it doesn't know what if I request to paginate "category" or "items".
Thank you for every input.
Michal