Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TTVA-228 | Upgrade Django, Python & Node #195

Draft
wants to merge 21 commits into
base: tre-varaamo-qa
Choose a base branch
from

Conversation

japauliina
Copy link

No description provided.

Upgrade Django to 3.0 and update also other dependencies to the latest
possible versions.

Changes:
- Replace deprecated ugettext_lazy with gettext_lazy
- Replace django.utils.six with six

Refs TTVA-232
Replace deprecated functions with the new ones:
- force_text -> force_str
- ugettext -> gettext
- ungettext -> ngettext

Refs TTVA-232
Upgrade Django to 3.1 and update also other dependencies to the latest
possible versions.

Changes:
- New migration for AbstractUser.first_name max_length increased to 150
- Fix FieldDoesNotExist import as it was removed from
django.db.models.fields

Refs TTVA-232
Upgrade Django to 3.2 and update also other dependencies to the latest
possible versions.

Changes:
- Get response headers from HttpResponse.headers as they are now stored
there.
- Add DEFAULT_AUTO_FIELD setting as suggested by Django 3.2.
- Remove usage of QuerySet.distinct() after union() as it is not
supported anymore.

Refs TTVA-232
Change django.contrib.postgres.fields.JSONField to models.JSONField  as
it will be removed in Django 4.0.

Refs TTVA-232
NullBooleanField is deprecated and will be removed in Django 4.0.
Change to suggested BooleanField(null=True).

Refs TTVA-232
Upgrade Django to 4.0 and update also other dependencies to the latest
possible versions.

USE_DEPRECATED_PYTZ is set to True for now. Django is migrating from
pytz to zoneinfo and this setting will be removed in Django 5.0.

Changes:
- Migrations autodetector changes
- Remove providing_args argument from django.dispatch.Signal
- Replace removeddjango.conf.urls.url with django.urls.re_path
- Add now required length argument to get_random_string

Refs TTVA-232
Upgrade Django to 4.1 and update also other dependencies to the latest
possible versions.

Refs TTVA-232
Upgrade Django to 4.2 and update also other dependencies to the latest
possible versions.

Changes:
- TranslationOptions's fields was named to all_fields
- Fix error "Router with basename "resource" is already registered" by
adding ResourceListViewSet directly to the urlpatterns.

Refs TTVA-232
Refs TTVA-233
Django-ckeditor is bundled with CKEditor 4.22.1 which isn't supported
anymore and has unfixed security issues. Remove django-ckeditor and
switch to a TextField for now.

Refs TTVA-235
Refs TTVA-234
Refs TTVA-234
Refs TTVA-234
Refs TTVA-234
@japauliina japauliina force-pushed the TTVA-228-upgrade-django-python-node branch 4 times, most recently from f44e8ca to 8eba2d3 Compare March 6, 2025 07:10
Refs TTVA-233
@japauliina japauliina force-pushed the TTVA-228-upgrade-django-python-node branch from 8eba2d3 to 31bb1b5 Compare March 6, 2025 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant