Projet

Général

Profil

Development #23272

Mis à jour par Anonyme il y a environ 6 ans

Malgré une précédente discussion qui avait conclut à ne pas toucher à ces méthodes, je remets la discussion sur le tapis parce que le _system-check_ Le system check est CRITICAL sous Django pour django 1.11 :

- reproduire avec django 1.11 et la branche authentic wip/django111

<pre>
> authentic-multitenant-manage migrate_schemas

SystemCheckError: System check identified some issues:

CRITICALS:
custom_user.User: (auth.C009) <class 'authentic2.custom_user.models.User'>.is_anonymous must be an attribute or property rather than a method. Ignoring this is a security issue as anonymous users will be treated as authenticated!
custom_user.User: (auth.C010) <class 'authentic2.custom_user.models.User'>.is_authenticated must be an attribute or property rather than a method. Ignoring this is a security issue as anonymous users will be treated as authenticated!

</pre>

* à lire ici : http://django.readthedocs.io/en/1.11.x/ref/checks.html#checkmessage

<pre>
If the level is greater or equal to ERROR, then Django will prevent management commands from executing.
</pre>

Retour