a guest Jun 17th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- def get_queryset(self):
- current_category = get_object_or_404(Category, slug=self.kwargs.get('slug'), is_active=True)
- return super().get_queryset().filter(categories=current_category, is_active=True)
RAW Paste Data