Projet

Général

Profil

Development #42694

/admin/custom_user/user/ et /admin/authentic2/attribute/ ne fonctionnent plus

Ajouté par Benjamin Dauvergne il y a presque 4 ans. Mis à jour il y a presque 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
11 mai 2020
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Un souci avec allow_lazy() et un souci avec les champs lockés.


Fichiers


Demandes liées

Dupliqué par Authentic 2 - Bug #42883: AttributeError: '__proxy__' object has no attribute '__name__'Fermé14 mai 2020

Actions

Révisions associées

Révision 34026891 (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

tests: add test on Attribute admin view (#42694)

Révision ce943b8d (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

tests: add verified attributes in User admin view test (#42694)

DEBUG must be activated in the template engine to see KeyError
exceptions during rendering of fields.

Révision ce42f45e (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

tests: prevent loading of a2 settings by rbac tests (#42694)

Révision a3bf1cf6 (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

misc: completely remove use of allow_lazy (#42694)

allow_lazy(func, *resultclass) signature differs from
keep_lazy(*resultclasses)(func) signature but it was replaced without
any regard to this difference and it broke AttributeAdmin as
attribute kinds labels use a lazyfied capfirst() function.

Révision a35be9f2 (diff)
Ajouté par Benjamin Dauvergne il y a presque 4 ans

admin: force is_locked() to False in UserChangeForm (#42694)

Locked fields are implemented by renaming the form's fields with a
`@disabled' suffix. But it interacts badly with the Django admin
framework which expects all fields to always exist. The simplest fix for
that is to disable field locking in the admin views on User.

Historique

#2

Mis à jour par Benjamin Dauvergne il y a presque 4 ans

  • Sujet changé de /admin/custom_user/user/ ne fonctionne plus à /admin/custom_user/user/ et /admin/authentic2/attribute/ ne fonctionnent plus
#3

Mis à jour par Paul Marillonnet il y a presque 4 ans

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

It works.

#4

Mis à jour par Benjamin Dauvergne il y a presque 4 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit a35be9f28dc4004c54e4a3d26dbe2f6f2364b761
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri May 8 18:37:46 2020 +0200

    admin: force is_locked() to False in UserChangeForm (#42694)

    Locked fields are implemented by renaming the form's fields with a
    `@disabled' suffix. But it interacts badly with the Django admin
    framework which expects all fields to always exist. The simplest fix for
    that is to disable field locking in the admin views on User.

commit a3bf1cf609e5fce24e3c80952e58c732c061ba47
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Fri May 8 00:05:16 2020 +0200

    misc: completely remove use of allow_lazy (#42694)

    allow_lazy(func, *resultclass) signature differs from
    keep_lazy(*resultclasses)(func) signature but it was replaced without
    any regard to this difference and it broke AttributeAdmin as
    attribute kinds labels use a lazyfied capfirst() function.
#6

Mis à jour par Benjamin Dauvergne il y a presque 4 ans

  • Dupliqué par Bug #42883: AttributeError: '__proxy__' object has no attribute '__name__' ajouté
#7

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

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

Formats disponibles : Atom PDF