Skip to content

Upgrade to Django 5.2 LTS#7208

Merged
escattone merged 3 commits intomozilla:mainfrom
akatsoulas:django-upgrade-lts
Feb 10, 2026
Merged

Upgrade to Django 5.2 LTS#7208
escattone merged 3 commits intomozilla:mainfrom
akatsoulas:django-upgrade-lts

Conversation

@akatsoulas
Copy link
Copy Markdown
Collaborator

  • Enable native db pooling

Comment thread kitsune/search/views.py Outdated
Comment thread kitsune/users/middleware.py Outdated
Comment thread kitsune/settings.py Outdated
Comment thread wsgi/config.py
@akatsoulas akatsoulas force-pushed the django-upgrade-lts branch 5 times, most recently from 5a5479f to b2db53a Compare January 29, 2026 17:09
Copy link
Copy Markdown
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Don't we also need to change all of the other models with DateTimeField fields with default=datetime.now -- like Announcement.created, Announcement.show_after, FlaggedObject.created, FlaggedObject.handled, etc. -- to use default=timezone.now and then create migrations for those changes?
  • I assume we also need to upgrade our ES servers to 9.2.4, or will our current 9.0.3 version still run fine with these changes?

Comment thread kitsune/settings.py Outdated
Comment thread kitsune/search/base.py Outdated
Copy link
Copy Markdown
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following fields still need default=timezone.now and migrations:

  • In kitsune/forums/models.py:
    • Thread.created
    • Post.created
    • Post.updated
  • In kitsune/kbforums/models.py:
    • Thread.created
    • Post.created
    • Post.updated

The following files need datetime.now replaced with timezone.now

  • kitsune/community/utils.py
  • kitsune/community/tests/test_cron.py
  • kitsune/community/tests/test_utils.py
  • kitsune/dashboards/tests/test_readouts.py
  • kitsune/forums/tests/__init__.py
  • kitsune/forums/tests/test_feeds.py
  • kitsune/forums/tests/test_models.py
  • kitsune/forums/tests/test_posts.py
  • kitsune/kbforums/tests/test_models.py
  • kitsune/kpi/api.py
  • kitsune/kpi/tests/test_api.py
  • kitsune/questions/api.py
  • kitsune/questions/handlers.py
  • kitsune/questions/managers.py
  • kitsune/questions/tasks.py
  • kitsune/questions/views.py
  • kitsune/kbforums/views.py
  • kitsune/forums/views.py
  • kitsune/questions/tests/__init__.py
  • `kitsune/questions/tests/test_api.py
  • kitsune/questions/tests/test_feeds.py
  • kitsune/questions/tests/test_handlers.py
  • kitsune/questions/tests/test_tasks.py
  • kitsune/questions/tests/test_templates.py
  • kitsune/search/base.py
  • kitsune/search/models.py
  • kitsune/search/search.py
  • kitsune/search/management/commands/es_init.py
  • kitsune/sumo/context_processors.py
  • kitsune/sumo/tasks.py
  • kitsune/sumo/utils.py
  • kitsune/sumo/management/commands/enqueue_lag_monitor_task.py
  • kitsune/sumo/management/commands/extract.py
  • kitsune/sumo/templatetags/jinja_helpers.py
  • kitsune/users/api.py
  • kitsune/users/tasks.py
  • kitsune/users/utils.py
  • kitsune/users/tests/test_api.py
  • kitsune/wiki/content_managers.py
  • kitsune/wiki/models.py
  • kitsune/wiki/sampledata.py
  • kitsune/wiki/views.py
  • kitsune/wiki/tests/__init__.py
  • kitsune/wiki/tests/test_models.py
  • kitsune/wiki/tests/test_services.py
  • kitsune/wiki/tests/test_tasks.py
  • kitsune/wiki/tests/test_templates.py
  • scripts/contributor_counts.py

Copy link
Copy Markdown
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@escattone escattone merged commit 6a2e2e6 into mozilla:main Feb 10, 2026
2 checks passed
@akatsoulas akatsoulas deleted the django-upgrade-lts branch February 11, 2026 08: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.

2 participants