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

Upgrade Django to 4.2 #1847

Merged
merged 9 commits into from
Jan 23, 2024
Merged

Upgrade Django to 4.2 #1847

merged 9 commits into from
Jan 23, 2024

Conversation

Dhwaniartefact
Copy link
Contributor

@Dhwaniartefact Dhwaniartefact commented Sep 18, 2023

This sets django-upgrade in pre-commit to upgrade Django to 4.2.

One significant change is:
The Django 4.2 version uses a datetime method called fromisoformat() to get well-formed values for timezone in parse_datetime() of dateparse module.
Ref: https://github.com/django/django/blob/main/django/utils/dateparse.py#L104

Connected to archivematica/Issues#1624

@replaceafill replaceafill added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Sep 19, 2023
@Dhwaniartefact Dhwaniartefact force-pushed the Upgrade-Django4.2 branch 2 times, most recently from 0b5d161 to b1f02e5 Compare September 20, 2023 20:57
@Dhwaniartefact Dhwaniartefact marked this pull request as ready for review September 20, 2023 21:01
@Dhwaniartefact Dhwaniartefact force-pushed the Upgrade-Django4.2 branch 2 times, most recently from 1c467ea to 52ad358 Compare September 20, 2023 22:18
@Dhwaniartefact Dhwaniartefact added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Sep 20, 2023
@replaceafill
Copy link
Member

This looks good @Dhwaniartefact, thanks! Let's leave this PR here until we milestone its issue.

@Dhwaniartefact Dhwaniartefact added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Jan 23, 2024
Copy link
Member

@replaceafill replaceafill left a comment

Choose a reason for hiding this comment

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

Great work @Dhwaniartefact!

@Dhwaniartefact Dhwaniartefact merged commit efe4940 into qa/1.x Jan 23, 2024
41 checks passed
@Dhwaniartefact Dhwaniartefact deleted the Upgrade-Django4.2 branch January 23, 2024 14:46
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