diff --git a/AUTHORS.rst b/AUTHORS.rst index af24d0a..6754498 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -10,3 +10,4 @@ Contributors ------------ * João Neto - https://github.com/netjinho +* Jorik Kraaikamp - https://github.com/JostCrow diff --git a/README.rst b/README.rst index f6d615f..a0422b0 100644 --- a/README.rst +++ b/README.rst @@ -58,6 +58,9 @@ with Django REST Framework but it can be used without DRF (see below). :: + from url_filter.integrations.drf import DjangoFilterBackend + + class UserViewSet(ModelViewSet): queryset = User.objects.all() serializer_class = UserSerializer @@ -67,6 +70,10 @@ with Django REST Framework but it can be used without DRF (see below). Alternatively filterset can be manually created and used directly to filter querysets:: + from django.http import QueryDict + from url_filter.filtersets import ModelFilterSet + + class UserFilterSet(ModelFilterSet): class Meta(object): model = User