Development #37317
Django2 & RemovedInDjango20Warning/RemovedInDjango21Warning
0%
Description
Supprimer le plus de RemovedInDjango20Warning et de RemovedInDjango21Warning possibles
Fichiers
Révisions associées
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.
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
dj2: use django's LoginView (#37317)
RemovedInDjango21Warning:
The login() view is superseded by the class-based LoginView().
dj2: use settings.MIDDLEWARE (#37317)
RemovedInDjango20Warning:
Old-style middleware using settings.MIDDLEWARE_CLASSES is deprecated.
Update your middleware and use settings.MIDDLEWARE instead.
Historique
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)
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0005-dj2-use-settings.MIDDLEWARE-37317.patch 0005-dj2-use-settings.MIDDLEWARE-37317.patch ajouté
- Fichier 0004-dj2-use-django-s-LoginView-37317.patch 0004-dj2-use-django-s-LoginView-37317.patch ajouté
- Fichier 0003-dj2-explicit-on_delete-on-ForeignKey-37317.patch 0003-dj2-explicit-on_delete-on-ForeignKey-37317.patch ajouté
- Fichier 0002-dj2-many-to-many-assignment-37317.patch 0002-dj2-many-to-many-assignment-37317.patch ajouté
- Fichier 0001-dj2-is_anonymous-is-now-an-attribute-37317.patch 0001-dj2-is_anonymous-is-now-an-attribute-37317.patch ajouté
- Tracker changé de Support à Bug
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Christophe Siraut il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
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.
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
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.