Bug #62460
AttributeError: 'Context' object has no attribute 'request'
Début:
07 mars 2022
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/54738/
AttributeError: 'Context' object has no attribute 'request' (17 additional frame(s) were not displayed) ... File "django/template/base.py", line 163, in _render return self.nodelist.render(context) File "django/template/base.py", line 937, in render bit = node.render_annotated(context) File "django/template/base.py", line 904, in render_annotated return self.render(context) File "django/template/library.py", line 192, in render output = self.func(*resolved_args, **resolved_kwargs) File "combo/apps/wcs/templatetags/wcs.py", line 101, in make_public_url if not context.request.session.session_key:
Fichiers
Révisions associées
Historique
Mis à jour par Lauréline Guérin il y a environ 2 ans
Tag make_public_url
utilisé dans un custom field (cellule fiche).
Le context est un simple dict, il faudrait ici un RequestContext
Mis à jour par Lauréline Guérin il y a environ 2 ans
- Fichier 0001-wcs-fix-make_public_url-templatetag-used-with-simple.patch 0001-wcs-fix-make_public_url-templatetag-used-with-simple.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 environ 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a environ 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit ebcdc010844a29a8b9a15df4f2f93f6d129dad94 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Mar 7 16:05:51 2022 +0100 wcs: fix make_public_url templatetag used with simple Context (#62460)
Mis à jour par Transition automatique il y a environ 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
wcs: fix make_public_url templatetag used with simple Context (#62460)