Commits

Arnaud Grausem committed 208b3c0

Compatibility with Django 1.2.3

Comments (0)

Files changed (6)

templates/registration/login.html

 {% endif %}
 <div id="content-main">
 <form action="{{ app_path }}" method="post" id="login-form">
+  {% csrf_token %}
   <div class="form-row">
     <label for="id_username">{% trans 'Username:' %}</label> <input type="text" name="username" id="id_username" />
   </div>

templates/report/form.html

 {% load i18n %}
 
 <form id="report" action="#" method="post" >
+    {% csrf_token %}
     <table id="report_form_table">
         <tbody>
 	    <tr>

templates/timesheet/includes/task_formset.html

 {% load i18n %}
 
 <form method="post" id="task_formset_{{ task.id }}" action="#">
+    {% csrf_token %}
     {{ formset.management_form }}
     <table>
     {% for form in formset.forms %}

templates/timesheet/month_and_daily.html

 	{% include "timesheet/includes/tasks.html" %}
     </div>
     <form method="post" action="#" id="hours_logger" accept-charset="utf-8">
+	{% csrf_token %}
 	{% block form %}
 	{% endblock %}
     </form>

templates/timesheet/weekly.html

 {% endblock %}
 {% block logger %}
     <form method="post" action="#" id="hours_logger" accept-charset="utf-8">
+	{% csrf_token %}
    	 <div id="tasks" style="display:none">
 		{% include "timesheet/includes/tasks.html" %}
 	</div>

thot/local_settings.py.prod

     'django.middleware.locale.LocaleMiddleware',
     'django.contrib.auth.middleware.AuthenticationMiddleware',
     #'django_cas.middleware.CASMiddleware',
+    'django.middleware.csrf.CsrfMiddleware',
     'django.middleware.doc.XViewMiddleware',
 )