Projet

Général

Profil

Development #36895

Supprimer les RemovedInDjango20Warning

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é:
Bas
Assigné à:
Version cible:
-
Début:
14 octobre 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

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

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

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

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

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.

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

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.

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

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.

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

dj2: assignment_tag is deprecated (#36895)

remove RemovedInDjango20Warning:
assignment_tag() is deprecated. Use simple_tag() instead

Historique

#2

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.

#3

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
#4

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