8000 Edit to the import in Setting filter backends · burnash/django-rest-framework@8030f5b · GitHub
[go: up one dir, main page]

Skip to content
  • Commit 8030f5b

    Browse files
    authored
    Edit to the import in Setting filter backends
    `django_filters` doesn't export `rest_framework` by default so it's required to import it.
    1 parent 45e90c3 commit 8030f5b

    File tree

    1 file changed

    +1
    -1
    lines changed

    1 file changed

    +1
    -1
    lines changed

    docs/api-guide/filtering.md

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -98,7 +98,7 @@ The default filter backends may be set globally, using the `DEFAULT_FILTER_BACKE
    9898
    You can also set the filter backends on a per-view, or per-viewset basis,
    9999
    using the `GenericAPIView` class-based views.
    100100

    101-
    import django_filters
    101+
    import django_filters.rest_framework
    102102
    from django.contrib.auth.models import User
    103103
    from myapp.serializers import UserSerializer
    104104
    from rest_framework import generics

    0 commit comments

    Comments
     (0)
    0