Merge lp:~daker/loco-team-portal/fix.1153857 into lp:loco-team-portal

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Chris Johnston
Approved revision: 624
Merged at revision: 624
Proposed branch: lp:~daker/loco-team-portal/fix.1153857
Merge into: lp:loco-team-portal
Diff against target: 43 lines (+8/-8)
2 files modified
loco_directory/templates/meetings/agenda_item_new.html (+4/-4)
loco_directory/templates/meetings/agenda_item_update.html (+4/-4)
To merge this branch: bzr merge lp:~daker/loco-team-portal/fix.1153857
Reviewer Review Type Date Requested Status
Chris Johnston Approve
Review via email: mp+153010@code.launchpad.net

Commit message

Fixed csrf for agenda form

To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'loco_directory/templates/meetings/agenda_item_new.html'
2--- loco_directory/templates/meetings/agenda_item_new.html 2012-06-07 04:19:26 +0000
3+++ loco_directory/templates/meetings/agenda_item_new.html 2013-03-12 20:43:25 +0000
4@@ -22,13 +22,13 @@
5 {% block content %}
6 <div class="row">
7 <section class="span-9">
8- <form action="." method="post">
9+ <form action="." method="post">{% csrf_token %}
10 <fieldset>
11 <h3>{% trans "Add new Agenda Item for " %}{{ team_meeting_object.name}}</h3>
12- {{ form.as_template }}
13+ {{ form.as_template }}
14 </fieldset>
15- {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
16- <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
17+ {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
18+ <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
19 </form>
20 </section>
21 </div>
22
23=== modified file 'loco_directory/templates/meetings/agenda_item_update.html'
24--- loco_directory/templates/meetings/agenda_item_update.html 2012-06-07 04:19:26 +0000
25+++ loco_directory/templates/meetings/agenda_item_update.html 2013-03-12 20:43:25 +0000
26@@ -23,13 +23,13 @@
27 {% block content %}
28 <div class="row">
29 <section class="span-9">
30- <form action="." method="post">
31+ <form action="." method="post">{% csrf_token %}
32 <fieldset>
33 <h3>{% trans "Update Agenda Item" %}</h3>
34- {{ form.as_template }}
35+ {{ form.as_template }}
36 </fieldset>
37- {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
38- <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
39+ {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
40+ <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />
41 </form>
42 </section>
43 </div>

Subscribers

People subscribed via source and target branches