I have a filter:
class BookFilter(django_filters.FilterSet):
class Meta:
model = Book
fields = '__all__'
and a ListView to see the results:
class SearchResultsListView(ListView):
model = Book
context_object_name = 'book_list'
template_name = 'book/search_results.html'
I want to have a search form where you can filter based on all fields of a class (ex, all books written by X with more than 3 stars).
How do I pass the form to the model, and how do I use the get request to filter with django-filter as needed?
I'm using Django 3.0 and django-filter 2.2.0