Upgrade to Django 5.2 LTS#7208
Merged
escattone merged 3 commits intomozilla:mainfrom Feb 10, 2026
Merged
Conversation
Collaborator
akatsoulas
commented
Jan 27, 2026
- Enable native db pooling
escattone
reviewed
Jan 28, 2026
5a5479f to
b2db53a
Compare
escattone
reviewed
Jan 29, 2026
Contributor
There was a problem hiding this comment.
- Don't we also need to change all of the other models with
DateTimeFieldfields withdefault=datetime.now-- likeAnnouncement.created,Announcement.show_after,FlaggedObject.created,FlaggedObject.handled, etc. -- to usedefault=timezone.nowand 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?
5af6700 to
bb07a0e
Compare
escattone
reviewed
Feb 2, 2026
Contributor
escattone
left a comment
There was a problem hiding this comment.
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
bb07a0e to
7797d3e
Compare
* Enable native db pooling
7797d3e to
ac16caa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.