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

Migration Django 5 #1420

Open
christophehenry opened this issue Sep 19, 2024 · 0 comments
Open

Migration Django 5 #1420

christophehenry opened this issue Sep 19, 2024 · 0 comments

Comments

@christophehenry
Copy link
Collaborator

christophehenry commented Sep 19, 2024

  • Supprimer settings.USE_TZ : cette variable passe à True, par défaut, il n'y a plus besoin de la surcharger.
  • Supprimer settings.USE_L10N : la localisation est toujours activée ; la variable est inutile.
  • django.db.models.enums.ChoicesMeta est renommée ChoicesType. On l'utilise ici mais ce code devrait de toutes façons bientôt être inutile avec Ajout des boutons radio riches numerique-gouv/django-dsfr#168.
  • Remplacer les timezones pytz par ZoneInfo et supprimer la dépendance pytz.
  • Model.save() n'accepte que des arguments nommés. On utilise des arguments posisitonnels à plusieurs endroits du code.
@betagouv betagouv deleted a comment Sep 19, 2024
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

No branches or pull requests

1 participant