Skip to content

Commit 5fba0ef

Browse files
committed
minor simplification in example, thanks ch-rigu
1 parent 0f71515 commit 5fba0ef

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docs/chapter-13.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,7 @@ In ``common.py`` add:
258258
Finally in ``auth.html`` add:
259259

260260
.. code:: python
261-
[[try:]]
262-
[[=form]]
263-
[[except:]]
264-
[[pass]]
261+
[[=globals().get("form","")]]
265262
[[=recaptcha]]
266263
267264
@@ -309,10 +306,8 @@ In ``common.py`` add:
309306
Finally in ``auth.html`` add:
310307

311308
.. code:: python
312-
[[try:]]
313-
[[=form]]
314-
[[except:]]
315-
[[pass]]
309+
310+
[[=globals().get("form","")]]
316311
[[=hcaptcha]]
317312
318313
After completing these steps, the hCAPTCHA field will be added to the login, register, and request_reset_password forms.

0 commit comments

Comments
 (0)