Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ click-plugins==1.1.1
# via celery
click-repl==0.3.0
# via celery
commonground-api-common==2.6.2
commonground-api-common==2.6.4
# via open-api-framework
coreapi==2.3.3
# via commonground-api-common
Expand Down Expand Up @@ -223,7 +223,7 @@ idna==3.7
# via requests
inflection==0.5.1
# via drf-spectacular
iso-639==0.4.5
iso639-lang==2.6.0
# via commonground-api-common
itypes==1.2.0
# via coreapi
Expand Down
4 changes: 2 additions & 2 deletions requirements/ci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ click-repl==0.3.0
# celery
codecov==2.1.13
# via -r requirements/test-tools.in
commonground-api-common==2.6.2
commonground-api-common==2.6.4
# via
# -c requirements/base.txt
# -r requirements/base.txt
Expand Down Expand Up @@ -424,7 +424,7 @@ inflection==0.5.1
# drf-spectacular
iniconfig==2.0.0
# via pytest
iso-639==0.4.5
iso639-lang==2.6.0
# via
# -c requirements/base.txt
# -r requirements/base.txt
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ codecov==2.1.13
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
commonground-api-common==2.6.2
commonground-api-common==2.6.4
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
Expand Down Expand Up @@ -499,7 +499,7 @@ iniconfig==2.0.0
# -c requirements/ci.txt
# -r requirements/ci.txt
# pytest
iso-639==0.4.5
iso639-lang==2.6.0
# via
# -c requirements/ci.txt
# -r requirements/ci.txt
Expand Down
2 changes: 1 addition & 1 deletion src/objects/api/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from rest_framework.decorators import action
from rest_framework.generics import get_object_or_404
from rest_framework.response import Response
from vng_api_common.filters import Backend as FilterBackend
from vng_api_common.filters_backend import Backend as FilterBackend
from vng_api_common.search import SearchMixin

from objects.core.models import ObjectRecord
Expand Down
2 changes: 1 addition & 1 deletion src/objects/conf/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
REST_FRAMEWORK = {
"DEFAULT_RENDERER_CLASSES": ["rest_framework.renderers.JSONRenderer"],
"DEFAULT_PARSER_CLASSES": ["rest_framework.parsers.JSONParser"],
"DEFAULT_FILTER_BACKENDS": ["vng_api_common.filters.Backend"],
"DEFAULT_FILTER_BACKENDS": ["vng_api_common.filters_backend.Backend"],
"DEFAULT_AUTHENTICATION_CLASSES": [
"objects.token.authentication.TokenAuthentication"
],
Expand Down
4 changes: 2 additions & 2 deletions src/objects/utils/oas_extensions/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from drf_spectacular.plumbing import build_basic_type, build_parameter_type
from drf_spectacular.types import OpenApiTypes
from drf_spectacular.utils import OpenApiParameter
from vng_api_common import filters
from vng_api_common import filters_backend

from ..filters import ObjectTypeFilter


class DjangoFilterExtension(_DjangoFilterExtension):
target_class = filters.Backend
target_class = filters_backend.Backend
priority = 1

def resolve_filter_field(
Expand Down