diff --git a/requirements.in b/requirements.in index d4a55038..bc115a75 100644 --- a/requirements.in +++ b/requirements.in @@ -6,7 +6,7 @@ django-modeltranslation flake8 requests requests_cache -git+https://github.com/City-of-Helsinki/django-munigeo@v0.2.85#egg=django-munigeo +git+https://github.com/City-of-Helsinki/django-munigeo@v0.2.86#egg=django-munigeo pytz django-cors-headers django-extensions diff --git a/requirements.txt b/requirements.txt index 5a68f8cb..130ee0fb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile requirements.in @@ -8,21 +8,21 @@ asgiref==3.8.1 # via # django # django-cors-headers -attrs==23.2.0 +attrs==24.2.0 # via # cattrs # jsonschema # referencing # requests-cache -black==24.4.2 +black==24.8.0 # via -r requirements.in -bmi-arcgis-restapi==2.4.7 +bmi-arcgis-restapi==2.4.9 # via -r requirements.in build==1.2.1 # via pip-tools cattrs==23.2.3 # via requests-cache -certifi==2024.6.2 +certifi==2024.7.4 # via # requests # sentry-sdk @@ -32,9 +32,9 @@ click==8.1.7 # via # black # pip-tools -coverage[toml]==7.5.3 +coverage[toml]==7.6.1 # via pytest-cov -django==5.0.6 +django==5.1 # via # -r requirements.in # django-cors-headers @@ -46,17 +46,17 @@ django==5.0.6 # django-polymorphic # djangorestframework # drf-spectacular -django-cors-headers==4.3.1 +django-cors-headers==4.4.0 # via -r requirements.in django-environ==0.11.2 # via -r requirements.in django-extensions==3.2.3 # via -r requirements.in -django-filter==24.2 +django-filter==24.3 # via -r requirements.in django-js-asset==2.2.0 # via django-mptt -django-modeltranslation==0.18.11 +django-modeltranslation==0.19.7 # via # -r requirements.in # django-munigeo @@ -64,11 +64,11 @@ django-mptt==0.16.0 # via # -r requirements.in # django-munigeo -django-munigeo @ git+https://github.com/City-of-Helsinki/django-munigeo@v0.2.85 +django-munigeo @ git+https://github.com/City-of-Helsinki/django-munigeo@v0.2.86 # via -r requirements.in django-polymorphic==3.1.0 # via -r requirements.in -djangorestframework==3.15.1 +djangorestframework==3.15.2 # via # -r requirements.in # drf-spectacular @@ -76,7 +76,11 @@ djangorestframework-jsonp==1.0.2 # via -r requirements.in drf-spectacular==0.27.2 # via -r requirements.in -flake8==7.0.0 +exceptiongroup==1.2.2 + # via + # cattrs + # pytest +flake8==7.1.1 # via # -r requirements.in # pep8-naming @@ -94,13 +98,13 @@ isort==5.13.2 # via -r requirements.in jedi==0.19.1 # via -r requirements.in -jsonschema==4.22.0 +jsonschema==4.23.0 # via drf-spectacular jsonschema-specifications==2023.12.1 # via jsonschema libvoikko==4.3 # via -r requirements.in -lxml==5.2.2 +lxml==5.3.0 # via -r requirements.in mccabe==0.7.0 # via flake8 @@ -108,7 +112,7 @@ munch==4.0.0 # via bmi-arcgis-restapi mypy-extensions==1.0.0 # via black -packaging==24.0 +packaging==24.1 # via # black # build @@ -131,7 +135,7 @@ pluggy==1.5.0 # via pytest psycopg2==2.9.9 # via -r requirements.in -pycodestyle==2.11.1 +pycodestyle==2.12.1 # via flake8 pyflakes==3.2.0 # via flake8 @@ -139,7 +143,7 @@ pyproject-hooks==1.1.0 # via # build # pip-tools -pytest==8.2.2 +pytest==8.3.2 # via # pytest-cov # pytest-django @@ -151,7 +155,7 @@ python-dateutil==2.9.0.post0 # via -r requirements.in pytz==2024.1 # via -r requirements.in -pyyaml==6.0.1 +pyyaml==6.0.2 # via # django-munigeo # drf-spectacular @@ -166,41 +170,54 @@ requests==2.32.3 # django-munigeo # requests-cache # requests-mock -requests-cache==1.2.0 +requests-cache==1.2.1 # via -r requirements.in requests-mock==1.12.1 # via -r requirements.in -rpds-py==0.18.1 +rpds-py==0.20.0 # via # jsonschema # referencing -sentry-sdk==2.5.0 +sentry-sdk==2.13.0 # via -r requirements.in six==1.16.0 # via # django-munigeo # python-dateutil # url-normalize -sqlparse==0.5.0 +sqlparse==0.5.1 # via django -tqdm==4.66.4 +tomli==2.0.1 + # via + # black + # build + # coverage + # pip-tools + # pytest +tqdm==4.66.5 # via -r requirements.in +typing-extensions==4.12.2 + # via + # asgiref + # black + # cattrs + # django-modeltranslation tzdata==2024.1 # via -r requirements.in uritemplate==4.1.1 # via drf-spectacular url-normalize==1.4.3 # via requests-cache -urllib3==1.26.18 +urllib3==1.26.19 # via # -r requirements.in # bmi-arcgis-restapi # requests # requests-cache # sentry-sdk -wheel==0.43.0 +wheel==0.44.0 # via pip-tools -whitenoise==6.6.0 +whitenoise==6.7.0 # via -r requirements.in # The following packages are considered to be unsafe in a requirements file: diff --git a/services/api.py b/services/api.py index bd7e3c6d..f45a26f4 100644 --- a/services/api.py +++ b/services/api.py @@ -140,7 +140,7 @@ def __init__(self, *args, **kwargs): self.translated_fields = [] return - self.translated_fields = trans_opts.fields.keys() + self.translated_fields = trans_opts.all_fields.keys() # Remove the pre-existing data in the bundle. for field_name in self.translated_fields: for lang in LANGUAGES: