Projet

Général

Profil

Development #49283

Compatibilité django 2.2

Ajouté par Emmanuel Cazenave il y a plus de 3 ans. Mis à jour il y a environ 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
09 décembre 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Mais on doit garder python2, donc les cibles seraient py2-django111, py3-django111, py3-django2.2, ça parait un peu scabreux, mais je vais voir ce que ça donne.


Fichiers


Demandes liées

Lié à Publik - Project management #49998: compatibilité django 2.2Fermé09 janvier 202131 mars 2021

Actions
Bloqué par Passerelle - Development #49188: préparer la compatibilité django 2.2Fermé07 décembre 2020

Actions
Bloque Publik Installation Développeur - Development #49999: tourner avec django 2.2Fermé09 janvier 202101 mars 2021

Actions

Révisions associées

Révision ba6bb639 (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

use contrib.auth class based views (#49283)

Révision 6539d8dd (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

declare a manager on Role (#49283)

Révision 7eedc0bb (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

use the new names of URL related class (#49283)

Révision 446788ec (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

change command parser option or invocation (#49283)

To be compliant with https://code.djangoproject.com/ticket/27787 : parser arguments now gets introspected when using call_command.

Révision cd54c56f (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

set CSRF_COOKIE_SAMESITE to None (#49283)

Révision 41d847ab (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

use real string in migration (#49283)

Révision 1977c3ed (diff)
Ajouté par Emmanuel Cazenave il y a environ 3 ans

run tests against django 2.2 (#49283)

Historique

#1

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

#3

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

  • Assigné à Emmanuel Cazenave supprimé
#4

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

  • Statut changé de Nouveau à En cours
  • Assigné à mis à Emmanuel Cazenave
#5

Mis à jour par Frédéric Péters il y a plus de 3 ans

#6

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

Les choses notables :

  • 0004 : django plus stricte sur les invocations de commandes via call_command, il faut que le parser soit raccord avec les arguments passés à call_command
  • 0005 : suite de #45667, en django 2.2 il y a maintenant par défaut un CSRF_COOKIE_SAMESITE qui vaut 'lax'
  • 0006 : je n'ai pas l'explication complète mais il y a du y avoir des changements dans le commande de migration en django 2.x, résultat des courses dans les AttributeDefinition créé sans spécifier de kind, ça se retrouvait avec "b\'string\'" comme valeur pour cet attribut
#7

Mis à jour par Emmanuel Cazenave il y a plus de 3 ans

Et j'oubliais le point évoqué par mail sur django-tenant-schema, c'est 0004 qui règle l'affaire, comme on a on notre propre commande migrate_schemas c'est dans notre périmètre (mais j'avais cru que la mise à jour de django-tenant-schema nécessaire parce que la trace passe par tenant_schema.py::TenantMixin.create_schema qui invoque la commande migrate_schemas).

#8

Mis à jour par Emmanuel Cazenave il y a environ 3 ans

#9

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Solution proposée à Solution validée
#10

Mis à jour par Emmanuel Cazenave il y a environ 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 1977c3ed9574b6d7c3bde29ea941fcfba313a35c
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Tue Jan 12 14:52:39 2021 +0100

    run tests against django 2.2 (#49283)

commit 41d847ab04394b4aee4fab35c4560e536be97bb5
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Tue Jan 12 13:56:08 2021 +0100

    use real string in migration (#49283)

commit cd54c56f8c802c13d708fb25e2a350cfc0ff5479
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Tue Jan 12 11:34:27 2021 +0100

    set CSRF_COOKIE_SAMESITE to None (#49283)

commit 446788ece62e8d6b4c06653539820de52002ca8e
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Mon Jan 11 17:33:42 2021 +0100

    change command parser option or invocation (#49283)

    To be compliant with https://code.djangoproject.com/ticket/27787 : parser arguments now gets introspected when using call_command.

commit 7eedc0bbccca9059024a500f81ee1b7f0f3a569c
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Wed Jan 6 17:14:33 2021 +0100

    use the new names of URL related class (#49283)

commit 6539d8ddbf446a9c669f0360c514312c4c7092d1
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Wed Jan 6 12:01:41 2021 +0100

    declare a manager on Role (#49283)

commit ba6bb6398ba50d543b8fb4c9fa61cf02a9b60b37
Author: Emmanuel Cazenave <ecazenave@entrouvert.com>
Date:   Wed Dec 9 11:17:54 2020 +0100

    use contrib.auth class based views (#49283)
#11

Mis à jour par Frédéric Péters il y a environ 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF