mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-24 16:24:18 +03:00
Remove ambiguous reference to former DjangoFilterBackend.
This commit is contained in:
parent
703655bc65
commit
6831472a62
|
@ -165,7 +165,7 @@ If all you need is simple equality-based filtering, you can set a `filter_fields
|
|||
class ProductList(generics.ListAPIView):
|
||||
queryset = Product.objects.all()
|
||||
serializer_class = ProductSerializer
|
||||
filter_backends = (filters.DjangoFilterBackend,)
|
||||
filter_backends = (DjangoFilterBackend,)
|
||||
filter_fields = ('category', 'in_stock')
|
||||
|
||||
This will automatically create a `FilterSet` class for the given fields, and will allow you to make requests such as:
|
||||
|
|
Loading…
Reference in New Issue
Block a user