Skip to content

Upgrade back-end code from Django 4.2 to 5.2 LTS#8052

Draft
acwhite211 wants to merge 17 commits into
mainfrom
issue-8046
Draft

Upgrade back-end code from Django 4.2 to 5.2 LTS#8052
acwhite211 wants to merge 17 commits into
mainfrom
issue-8046

Conversation

@acwhite211

@acwhite211 acwhite211 commented May 1, 2026

Copy link
Copy Markdown
Collaborator

Fixes #8046

Upgrade Django from 4.2 to LTS version 5.2.

https://docs.djangoproject.com/en/6.0/releases/5.2/

Changes:

  • removed USE_L10N (A localization setting, that is now defaulted to true)
  • added new migration to fix many-to-many fields (django-generated)
  • Migrated GET request to logout to a POST request to be in HTTP (and django) spec
    • changed the logOut user tool (in Header/userToolDefinitions) to point to a new front-end endpoint: /specify/command/logout to match the cache clearing endpoint
    • this new endpoint (defined in Router/Routes.tsx) renders the Logout component
    • the Logout component makes the POST request to the backend and returns a loading screen

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests

Testing instructions

  • Ensure strings are localized correctly
    • verify that labels are not raw schema labels, i.e. ensure schema config labels are respected.
    • Ensure that switching languages behaves correctly.
  • Log out from several locations
    • Ensure that no error dialogs flash on the screen
    • Logging back in takes you to the splash screen
  • General UI/UX testing
    • especially the workbench and attachments/attachment bulk upload

@coderabbitai

coderabbitai Bot commented May 1, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 883607c2-3a76-405a-bf4f-0ed4762828e8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-8046

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@g1rly-c0d3r g1rly-c0d3r self-assigned this Jul 14, 2026
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown

Warning

One or more dependencies are approaching or past End-of-Life.
Please plan upgrades accordingly.

STATUS=WARNING
NODE_VERSION=20
NODE_CYCLE=20
EOL_DATE=2026-04-30
DAYS_REMAINING=-78

--- Node.js ---
Version: 20
EOL: 2026-04-30
Status: WARNING

STATUS=OK
PYTHON_VERSION=3.12
PYTHON_CYCLE=3.12
EOL_DATE=2028-10-31
DAYS_REMAINING=837

--- Python ---
Version: 3.12
EOL: 2028-10-31
Status: OK

STATUS=OK
DJANGO_VERSION=5.2
DJANGO_CYCLE=5.2
EOL_DATE=2028-04-30
DAYS_REMAINING=653

--- Django ---
Version: 5.2
EOL: 2028-04-30
Status: OK


Triggered by ffecf67 on branch refs/heads/issue-8046
Comment thread specifyweb/backend/inheritance/urls.py Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋Back Log

Development

Successfully merging this pull request may close these issues.

Upgrade Django to LTS version 5.2

3 participants