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
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
2 matches
Mail list logo