UEWBot / dipvis

Django-based visualiser for tournaments for the boardgame Diplomacy
GNU General Public License v3.0
7 stars 4 forks source link

Migrate to newer version of Django #277

Open UEWBot opened 8 months ago

UEWBot commented 8 months ago

3.2 extended support ends April 2024 4.2.7 is an LTS release with mainstream support until December 2023 and extended support until April 2026 The beta for 5.0 is now available (see https://www.djangoproject.com/download/)

UEWBot commented 1 month ago

Looking at the release notes for 4.2 (https://docs.djangoproject.com/en/4.2/releases/4.2/), this one probably matters:

Setting update_fields in Model.save() may now be required In order to avoid updating unnecessary columns, QuerySet.update_or_create() now passes update_fields to the Model.save() calls. As a consequence, any fields modified in the custom save() methods should be added to the update_fields keyword argument before calling super(). See Overriding predefined model methods for more details.

UEWBot commented 1 month ago

We have several custom save() methods. The following are unaffected by this change:

The following are affected:

UEWBot commented 1 month ago

The codebase should now be ready for Django 4.2