Projet

Général

Profil

Development #37317

Django2 & RemovedInDjango20Warning/RemovedInDjango21Warning

Ajouté par Lauréline Guérin il y a plus de 4 ans. Mis à jour il y a plus de 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
29 octobre 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Supprimer le plus de RemovedInDjango20Warning et de RemovedInDjango21Warning possibles


Fichiers

Révisions associées

Révision 52ff4d1b (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

dj2: is_anonymous is now an attribute (#37317)

RemovedInDjango20Warning:
Using user.is_authenticated() and user.is_anonymous() as a method is
deprecated. Remove the parentheses to use it as an attribute.

Révision fe29b96a (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

dj2: many-to-many assignment (#37317)

RemovedInDjango20Warning:
Direct assignment to the forward side of a many-to-many set is deprecated due
to the implicit save() that happens. Use groups.set() instead.

Révision 5aa4061c (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

dj2: explicit on_delete on ForeignKey (#37317)

RemovedInDjango20Warning:
on_delete will be a required arg for ForeignKey in Django 2.0. Set it to
models.CASCADE on models and in existing migrations if you want to maintain
the current default behavior.See https://docs.djangoproject.com/en/1.11/ref
/models/fields/#django.db.models.ForeignKey.on_delete

Révision 3c05e2d6 (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

dj2: use django's LoginView (#37317)

RemovedInDjango21Warning:
The login() view is superseded by the class-based LoginView().

Révision 968232d8 (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

dj2: use settings.MIDDLEWARE (#37317)

RemovedInDjango20Warning:
Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated.
Update your middleware and use settings.MIDDLEWARE instead.

Historique

#1

Mis à jour par Lauréline Guérin il y a plus de 4 ans

  • Sujet changé de Django2 & RemovedInDjango20Warning à Django2 & RemovedInDjango20Warning/RemovedInDjango21Warning
  • Description mis à jour (diff)
#3

Mis à jour par Lauréline Guérin il y a plus de 4 ans

  • Tracker changé de Bug à Development
#4

Mis à jour par Christophe Siraut il y a plus de 4 ans

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

Mis à jour par Lauréline Guérin il y a plus de 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 968232d8b81fd137a5f7164b65312fd15d6bb89a
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Oct 29 15:40:20 2019 +0100

    dj2: use settings.MIDDLEWARE (#37317)

    RemovedInDjango20Warning:
    Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated.
    Update your middleware and use settings.MIDDLEWARE instead.

commit 3c05e2d610e734ad7c6a74f20b43d7e6ea363fc9
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Oct 29 15:36:31 2019 +0100

    dj2: use django's LoginView (#37317)

    RemovedInDjango21Warning:
    The login() view is superseded by the class-based LoginView().

commit 5aa4061c27de685129a910bc88a336a12fc0ad4f
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Oct 29 15:17:35 2019 +0100

    dj2: explicit on_delete on ForeignKey (#37317)

    RemovedInDjango20Warning:
    on_delete will be a required arg for ForeignKey in Django 2.0. Set it to
    models.CASCADE on models and in existing migrations if you want to maintain
    the current default behavior.See https://docs.djangoproject.com/en/1.11/ref
    /models/fields/#django.db.models.ForeignKey.on_delete

commit fe29b96a4be5fea83bb4ae816a5393ee6cd4e0cc
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Oct 29 15:11:23 2019 +0100

    dj2: many-to-many assignment (#37317)

    RemovedInDjango20Warning:
    Direct assignment to the forward side of a many-to-many set is deprecated due
    to the implicit save() that happens. Use groups.set() instead.

commit 52ff4d1bb482df2b8a4bc6c2010f6f2266925f7f
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Tue Oct 29 15:06:17 2019 +0100

    dj2: is_anonymous is now an attribute (#37317)

    RemovedInDjango20Warning:
    Using user.is_authenticated() and user.is_anonymous() as a method is
    deprecated. Remove the parentheses to use it as an attribute.
#6

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

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

Formats disponibles : Atom PDF