Development #42694
/admin/custom_user/user/ et /admin/authentic2/attribute/ ne fonctionnent plus
0%
Description
Un souci avec allow_lazy() et un souci avec les champs lockés.
Fichiers
Demandes liées
Révisions associées
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.
tests: prevent loading of a2 settings by rbac tests (#42694)
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.
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
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Fichier 0004-admin-force-is_locked-to-False-in-UserChangeForm-426.patch 0004-admin-force-is_locked-to-False-in-UserChangeForm-426.patch ajouté
- Fichier 0002-tests-add-verified-attributes-in-User-admin-view-tes.patch 0002-tests-add-verified-attributes-in-User-admin-view-tes.patch ajouté
- Fichier 0001-tests-add-test-on-Attribute-admin-view-42694.patch 0001-tests-add-test-on-Attribute-admin-view-42694.patch ajouté
- Fichier 0003-misc-completely-remove-use-of-allow_lazy.patch 0003-misc-completely-remove-use-of-allow_lazy.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
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
Mis à jour par Paul Marillonnet il y a presque 4 ans
- Statut changé de Solution proposée à Solution validée
It works.
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.
Mis à jour par Benjamin Dauvergne il y a presque 4 ans
- Dupliqué par Bug #42883: AttributeError: '__proxy__' object has no attribute '__name__' ajouté
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
tests: add test on Attribute admin view (#42694)