Skip to content

Commit c2dd91f

Browse files
committed
➕ add commonground-api-common=2.6.4 dependency and change filters to filters_backend
modified: requirements/base.txt modified: requirements/ci.txt modified: requirements/dev.txt modified: src/objects/api/v2/views.py modified: src/objects/utils/oas_extensions/query.py
1 parent c07fc5c commit c2dd91f

5 files changed

Lines changed: 36 additions & 9 deletions

File tree

requirements/base.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ click-plugins==1.1.1
5959
# via celery
6060
click-repl==0.3.0
6161
# via celery
62-
commonground-api-common==2.6.2
62+
commonground-api-common==2.6.4
6363
# via open-api-framework
6464
coreapi==2.3.3
6565
# via commonground-api-common
@@ -223,7 +223,7 @@ idna==3.7
223223
# via requests
224224
inflection==0.5.1
225225
# via drf-spectacular
226-
iso-639==0.4.5
226+
iso639-lang==2.6.0
227227
# via commonground-api-common
228228
itypes==1.2.0
229229
# via coreapi
@@ -350,6 +350,7 @@ tornado==6.5
350350
# via flower
351351
typing-extensions==4.9.0
352352
# via
353+
# asgiref
353354
# mozilla-django-oidc-db
354355
# psycopg
355356
# psycopg-pool

requirements/ci.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ click-repl==0.3.0
113113
# celery
114114
codecov==2.1.13
115115
# via -r requirements/test-tools.in
116-
commonground-api-common==2.6.2
116+
commonground-api-common==2.6.4
117117
# via
118118
# -c requirements/base.txt
119119
# -r requirements/base.txt
@@ -378,6 +378,8 @@ elastic-apm==6.23.0
378378
# -c requirements/base.txt
379379
# -r requirements/base.txt
380380
# open-api-framework
381+
exceptiongroup==1.3.0
382+
# via pytest
381383
face==20.1.1
382384
# via
383385
# -c requirements/base.txt
@@ -424,7 +426,7 @@ inflection==0.5.1
424426
# drf-spectacular
425427
iniconfig==2.0.0
426428
# via pytest
427-
iso-639==0.4.5
429+
iso639-lang==2.6.0
428430
# via
429431
# -c requirements/base.txt
430432
# -r requirements/base.txt
@@ -735,6 +737,9 @@ typing-extensions==4.9.0
735737
# via
736738
# -c requirements/base.txt
737739
# -r requirements/base.txt
740+
# asgiref
741+
# black
742+
# exceptiongroup
738743
# mozilla-django-oidc-db
739744
# psycopg
740745
# psycopg-pool

requirements/dev.txt

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ codecov==2.1.13
141141
# via
142142
# -c requirements/ci.txt
143143
# -r requirements/ci.txt
144-
commonground-api-common==2.6.2
144+
commonground-api-common==2.6.4
145145
# via
146146
# -c requirements/ci.txt
147147
# -r requirements/ci.txt
@@ -426,6 +426,12 @@ elastic-apm==6.23.0
426426
# -c requirements/ci.txt
427427
# -r requirements/ci.txt
428428
# open-api-framework
429+
exceptiongroup==1.3.0
430+
# via
431+
# -c requirements/ci.txt
432+
# -r requirements/ci.txt
433+
# anyio
434+
# pytest
429435
face==20.1.1
430436
# via
431437
# -c requirements/ci.txt
@@ -499,7 +505,7 @@ iniconfig==2.0.0
499505
# -c requirements/ci.txt
500506
# -r requirements/ci.txt
501507
# pytest
502-
iso-639==0.4.5
508+
iso639-lang==2.6.0
503509
# via
504510
# -c requirements/ci.txt
505511
# -r requirements/ci.txt
@@ -902,6 +908,17 @@ tblib==1.7.0
902908
# via
903909
# -c requirements/ci.txt
904910
# -r requirements/ci.txt
911+
tomli==2.2.1
912+
# via
913+
# -c requirements/ci.txt
914+
# -r requirements/ci.txt
915+
# autopep8
916+
# black
917+
# build
918+
# pip-tools
919+
# pyproject-hooks
920+
# pytest
921+
# sphinx
905922
tomlkit==0.13.2
906923
# via bump-my-version
907924
tornado==6.5
@@ -914,11 +931,15 @@ typing-extensions==4.9.0
914931
# -c requirements/ci.txt
915932
# -r requirements/ci.txt
916933
# anyio
934+
# asgiref
935+
# black
936+
# exceptiongroup
917937
# mozilla-django-oidc-db
918938
# psycopg
919939
# psycopg-pool
920940
# pydantic
921941
# pydantic-core
942+
# rich
922943
# rich-click
923944
# zgw-consumers
924945
tzdata==2024.1

src/objects/api/v2/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from rest_framework.decorators import action
1515
from rest_framework.generics import get_object_or_404
1616
from rest_framework.response import Response
17-
from vng_api_common.filters import Backend as FilterBackend
17+
from vng_api_common.filters_backend import Backend as FilterBackend
1818
from vng_api_common.search import SearchMixin
1919

2020
from objects.core.models import ObjectRecord

src/objects/utils/oas_extensions/query.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
from drf_spectacular.plumbing import build_basic_type, build_parameter_type
55
from drf_spectacular.types import OpenApiTypes
66
from drf_spectacular.utils import OpenApiParameter
7-
from vng_api_common import filters
7+
from vng_api_common import filters_backend
88

99
from ..filters import ObjectTypeFilter
1010

1111

1212
class DjangoFilterExtension(_DjangoFilterExtension):
13-
target_class = filters.Backend
13+
target_class = filters_backend.Backend
1414
priority = 1
1515

1616
def resolve_filter_field(

0 commit comments

Comments
 (0)