From b8172746871b494cf3c4659b59e1b081bd9302c3 Mon Sep 17 00:00:00 2001 From: eskilolsen Date: Sat, 24 Mar 2012 14:09:46 -0700 Subject: [PATCH] Seems the field is called csrf_token in flask.wtf now. --- Large-app-how-to.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Large-app-how-to.md b/Large-app-how-to.md index 8a64adc..6e9b833 100644 --- a/Large-app-how-to.md +++ b/Large-app-how-to.md @@ -340,7 +340,7 @@ Now we won't have to redefine our html structure anymore, and any modification d {% block content %} {% from "forms/macros.html" import render_field %}
- {{ form.csrf }} + {{ form.csrf_token }} {{ render_field(form.name, class="input text") }} {{ render_field(form.email, class="input text") }} {{ render_field(form.password, class="input text") }} @@ -361,7 +361,7 @@ and here is the `/app/templates/users/login.html` template: {% block content %} {% from "forms/macros.html" import render_field %} - {{ form.csrf }} + {{ form.csrf_token }} {{ render_field(form.email, class="input text") }} {{ render_field(form.password, class="input text") }}