Let's see whether you can answer the following questions correctly:
- The
django_filters.rest_framework.DjangoFilterBackend
class provides:- Control on how the results are ordered with a single query parameter
- Single query parameter-based searching capabilities, based on the Django admin's search function
- Field filtering capabilities
- The
rest_framework.filters.SearchFilter
class provides:- Control on how the results are ordered with a single query parameter
- Single query parameter-based searching capabilities, based on the Django admin's search function
- Field filtering capabilities
- If we want to create a unique constraint, what must be added to a
models.CharField
initializer as one of the named arguments?unique=True
unique_constraint=True
force_unique=True
- Which of the following class attributes specifies a tuple of strings whose values indicate the field names that we want to be able to filter against in a class-based view that inherits from
generics.ListCreateAPIView
:filters
filtering_fields...