mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Add import to example for filtering
`from rest_framework import filters` was missing from one of the examples
This commit is contained in:
parent
7b0252a91c
commit
a4af8cc623
|
@ -163,6 +163,7 @@ For more advanced filtering requirements you can specify a `FilterSet` class tha
|
|||
import django_filters
|
||||
from myapp.models import Product
|
||||
from myapp.serializers import ProductSerializer
|
||||
from rest_framework import filters
|
||||
from rest_framework import generics
|
||||
|
||||
class ProductFilter(django_filters.FilterSet):
|
||||
|
|
Loading…
Reference in New Issue
Block a user