Project

General

Profile

Development #42676

évaluation paresseuse pour le rendu des champs

Added by Frédéric Péters 2 months ago.

Status:
Nouveau
Priority:
Normal
Target version:
-
Start date:
09 May 2020
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

Dans la suite de #42672, autre endroit qui pourrait être modifié :

--- a/wcs/qommon/form.py
+++ b/wcs/qommon/form.py
@@ -167,7 +167,7 @@ def render(self):
     self.rendered_error = lambda: safe(self.render_error(self.get_error()))
     self.rendered_hint = lambda: safe(self.render_hint(self.get_hint()))
     if get_publisher():
-        context = get_publisher().substitutions.get_context_variables()
+        context = get_publisher().substitutions.get_context_variables(mode='lazy')
     else:
         context = {}
     context['widget'] = self

(à analyser)

Also available in: Atom PDF