Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SearchFilter(LoginRequiredMixin, generic.ListView):
- def get_queryset(self):
- if self.request.method == 'GET':
- chek_box = self.request.GET.get('chek_box', None).strip()
- """"Код фильтра """
- if check_box:
- models = your_model_one
- else:
- models = your_model_two
- return models
Add Comment
Please, Sign In to add comment