Skip to content

Commit

Permalink
Update requirements
Browse files Browse the repository at this point in the history
Make also a fix to django-modeltranslation use, as in version 0.19.0
the fields attribute was renamed to all_fields:
https://github.com/deschler/django-modeltranslation/blob/master/CHANGELOG.md#-breaking-changes
  • Loading branch information
japauliina authored and mhieta committed Aug 14, 2024
1 parent 0eb8c7e commit 5e0e7ca
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 29 deletions.
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ django-modeltranslation
flake8
requests
requests_cache
git+https://github.com/City-of-Helsinki/[email protected].85#egg=django-munigeo
git+https://github.com/City-of-Helsinki/[email protected].86#egg=django-munigeo
pytz
django-cors-headers
django-extensions
Expand Down
71 changes: 44 additions & 27 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -46,37 +46,41 @@ 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
django-mptt==0.16.0
# via
# -r requirements.in
# django-munigeo
django-munigeo @ git+https://github.com/City-of-Helsinki/[email protected].85
django-munigeo @ git+https://github.com/City-of-Helsinki/[email protected].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
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
Expand All @@ -94,21 +98,21 @@ 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
munch==4.0.0
# via bmi-arcgis-restapi
mypy-extensions==1.0.0
# via black
packaging==24.0
packaging==24.1
# via
# black
# build
Expand All @@ -131,15 +135,15 @@ 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
pyproject-hooks==1.1.0
# via
# build
# pip-tools
pytest==8.2.2
pytest==8.3.2
# via
# pytest-cov
# pytest-django
Expand All @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion services/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5e0e7ca

Please sign in to comment.