Project

General

Profile

Bug #74843

compatibilité django 3.2

Added by Frédéric Péters about 1 year ago. Updated about 1 year ago.

Status:
Fermé
Priority:
Haut
Target version:
-
Start date:
24 February 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No
Tags:

Description

#72941 annonce le faire mais fail classique :

py3-dj32 installed: ...,Django==2.2.28,...

et donc, on passe à côté du fait que ça soit cassé :

  File "/usr/lib/python3/dist-packages/zoo/zoo_data/models.py", line 31, in <module>
    from django.utils.six import python_2_unicode_compatible
ModuleNotFoundError: No module named 'django.utils.six'

Associated revisions

Revision 88c3a415 (diff)
Added by Benjamin Dauvergne about 1 year ago

setup.py: update django requirement (#74843)

Allow django<3.3.

Revision 04fba9a0 (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: update pyscopg2 requirement (#74843)

  • use psycopg2-binary for 2.x compatibility
  • use any version after

Revision 4ba9701d (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: update django-rest-framework requirement (#74843)

  • declare latest supported version in setup.py
  • set limit in tox.ini for test with django 2.x

Revision 2d7f7ed9 (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: replace use of ugettext_lazy (#74843)

Revision ba197a4b (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: update use of default_app_config (#74843)

Use a version condition as it's still necessary for Django 2.x.

Revision 2d64de04 (diff)
Added by Benjamin Dauvergne about 1 year ago

misc: remove use of python_2_unicode_compatible decorator (#74843)

Python2 is not supported for a long time.

Revision 4d2e935f (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: remove use of six (#74843)

Revision 7b6df2d5 (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: remove use of force_text (#74843)

Revision 9dc5a2d8 (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: remove use of force_bytes (#74843)

Revision 470fea47 (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: replace use of url by re_path (#74843)

Revision 0440e461 (diff)
Added by Benjamin Dauvergne about 1 year ago

dj32: adapts lookups/transforms (#74843)

  • remove django <2.x compatibility code
  • use Lower transform/function from Django
  • register Lower on CharField
  • register text lookup transforms on non contrib JSONField
  • declare text transform as outputting CharField type
  • fix declaration of timestamp lookup output type

History

#2

Updated by Benjamin Dauvergne about 1 year ago

  • Assignee set to Benjamin Dauvergne
#3

Updated by Robot Gitea about 1 year ago

  • Status changed from Nouveau to Solution proposée

Benjamin Dauvergne (bdauvergne) a ouvert une pull request sur Gitea concernant cette demande :

#4

Updated by Benjamin Dauvergne about 1 year ago

Tout est ok notamment sur les parties du code contenant des requêtes ORM un peu complexe, c'est bien couvert par les tests.

#5

Updated by Robot Gitea about 1 year ago

  • Status changed from Solution proposée to Solution validée

Thomas NOËL (tnoel) a approuvé une pull request sur Gitea concernant cette demande :

#6

Updated by Robot Gitea about 1 year ago

  • Status changed from Solution validée to Résolu (à déployer)

Benjamin Dauvergne (bdauvergne) a mergé une pull request sur Gitea concernant cette demande :

#7

Updated by Transition automatique about 2 months ago

Automatic expiration

Also available in: Atom PDF