I got this error "KeyError at / ", how to fix it?

Again, if this is a ListView you won’t have a id on the self.kwargs.
So this code

And this code

Will not work.

You said that wants to filter by some date, but on your views you’re trying to filter by a ID.

Do you still want to filter by ID or you want to filter by some date?

1 Like