Skip to content

1212 upgrade to django 5.2.9#1214

Merged
jonfroehlich merged 5 commits into
masterfrom
1212-upgrade-to-Django-5.2.9
Dec 15, 2025
Merged

1212 upgrade to django 5.2.9#1214
jonfroehlich merged 5 commits into
masterfrom
1212-upgrade-to-Django-5.2.9

Conversation

@jonfroehlich
Copy link
Copy Markdown
Member

Upgraded Django from 4.2.16 to 5.2.9, which broke a number of things (also fixed in this branch), including, most sizably, the sortedm2m_filter_horizontal_widget widget. We previously relied on https://github.com/svleeuwen/sortedm2m-filter-horizontal-widget but this PR introduces our own custom widget.

In addition, this PR addresses:

- Update Dockerfile to use Python 3.13.1 base image
- Update requirements.txt with Django 5.2 compatible package versions
- Remove django-sortedm2m-filter-horizontal-widget (unmaintained, incompatible)
- Upgrade django-sortedm2m to 4.0.0 for Django 5.x support
- Remove SortedFilteredSelectMultiple from artifact_admin.py and publication_admin.py
- Remove 'sortedm2m_filter_horizontal_widget' from INSTALLED_APPS
- Remove unused 'utc' import from news_listing.py (removed in Django 5.x)

Breaking changes addressed:
- django.utils.timezone.utc removed in Django 5.x
- ManyToManyRel.is_hidden() changed to .hidden property (fixed in sortedm2m 4.0.0)

Note: Author ordering in admin now uses sortedm2m's built-in drag-and-drop
widget instead of the filter-horizontal dual-list style.
…n improved findOrderedSelectBoxElement in OrderedSelectBox.js, which addresses #973
@jonfroehlich jonfroehlich merged commit f61d847 into master Dec 15, 2025
@jonfroehlich jonfroehlich deleted the 1212-upgrade-to-Django-5.2.9 branch December 15, 2025 23:12
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