Answers for "class views django slug"

-1

class views django slug

class SinglePostByCategory(DetailView):
    def get_queryset(self):
        return get_object_or_404(Post,
            category__slug=self.kwargs['category_slug'],
            slug=self.kwargs['post_slug']
        )
Posted by: Guest on October-15-2020

Python Answers by Framework

Browse Popular Code Answers by Language