SHARE
TWEET

Untitled

a guest Jun 17th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def get_queryset(self):
  2.     current_category = get_object_or_404(Category, slug=self.kwargs.get('slug'), is_active=True)
  3.     return super().get_queryset().filter(categories=current_category, is_active=True)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top