Re: paginate_by attribute not giving error.

2021-07-02 Thread Lalit Suthar
override `get_context_data` instead of `get_queryset` for this task refer: https://ccbv.co.uk/ On Thu, 1 Jul 2021 at 14:41, sunday honesty wrote: > Hello guys, it's been a while here. > > Need some help pls. > > I had to override my ListView get_querryset() method to query my posts > according

paginate_by attribute not giving error.

2021-07-01 Thread sunday honesty
Hello guys, it's been a while here. Need some help pls. I had to override my ListView get_querryset() method to query my posts according to a given category. But it seem my context is not a list of objects again as I get this error message: "TypeError: unhashable type: 'slice' " when I try to