Development #36895
Supprimer les RemovedInDjango20Warning
0%
Description
Supprimer les warnings suivants (liste non exhaustive):
RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead 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 RemovedInDjango20Warning: Using user.is_authenticated() and user.is_anonymous() as a method is deprecated. Remove the parentheses to use it as an attribute.
Fichiers
Révisions associées
dj2: is_anonymous and is_authenticated are now properties (#36895)
remove RemovedInDjango20Warning:
Using user.is_authenticated() and user.is_anonymous() as a method is deprecated.
Remove the parentheses to use it as an attribute.
dj2: use set and/or clear method for M2M (#36895)
remove RemovedInDjango20Warning:
Direct assignment to the forward side of a many-to-many set is deprecated due
to the implicit save() that happens.
Use items.set() instead.
dj2: fix include in urls.py (#36895)
remove RemovedInDjango20Warning:
Passing a 3-tuple to django.conf.urls.include() is deprecated.
Pass a 2-tuple containing the list of patterns and app_name, and provide the
namespace argument to include() instead.
dj2: assignment_tag is deprecated (#36895)
remove RemovedInDjango20Warning:
assignment_tag() is deprecated. Use simple_tag() instead
Historique
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0005-dj2-assignment_tag-is-deprecated-36895.patch 0005-dj2-assignment_tag-is-deprecated-36895.patch ajouté
- Fichier 0004-dj2-fix-include-in-urls.py-36895.patch 0004-dj2-fix-include-in-urls.py-36895.patch ajouté
- Fichier 0003-dj2-use-set-and-or-clear-method-for-M2M-36895.patch 0003-dj2-use-set-and-or-clear-method-for-M2M-36895.patch ajouté
- Fichier 0002-dj2-is_anonymous-and-is_authenticated-are-now-proper.patch 0002-dj2-is_anonymous-and-is_authenticated-are-now-proper.patch ajouté
- Fichier 0001-dj2-add-explicit-on_delete-on-all-ForeignKey-36895.patch 0001-dj2-add-explicit-on_delete-on-all-ForeignKey-36895.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Ok, après petit reformatage des messages de commit pour wrapper à 80 caractères.
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 7087aa3849c7186ebd4fe020c230f802bda8698e Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Oct 14 14:27:34 2019 +0200 dj2: assignment_tag is deprecated (#36895) remove RemovedInDjango20Warning: assignment_tag() is deprecated. Use simple_tag() instead commit 3244864c36f98a3b15bd3773ce50104cf5090771 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Oct 14 14:17:58 2019 +0200 dj2: fix include in urls.py (#36895) remove RemovedInDjango20Warning: Passing a 3-tuple to django.conf.urls.include() is deprecated. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead. commit a7417488eb63c32caf8a1a512ac3db879b656e93 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Oct 14 14:05:26 2019 +0200 dj2: use set and/or clear method for M2M (#36895) remove RemovedInDjango20Warning: Direct assignment to the forward side of a many-to-many set is deprecated due to the implicit save() that happens. Use items.set() instead. commit ccf99d908f3263e7d249738664318b6d8648bea0 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Oct 14 13:43:08 2019 +0200 dj2: is_anonymous and is_authenticated are now properties (#36895) remove RemovedInDjango20Warning: Using user.is_authenticated() and user.is_anonymous() as a method is deprecated. Remove the parentheses to use it as an attribute. commit 49830fc9c5c2c994457fec2525eca81f2de9b26f Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Oct 14 13:33:00 2019 +0200 dj2: add explicit on_delete on all ForeignKey (#36895) remove 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
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: add explicit on_delete on all ForeignKey (#36895)
remove 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