Commit Graph

12 Commits

Author SHA1 Message Date
2f52c4f7c4 Clean up whitespace in primary Python / HTML files
Clean up the whitespace in the primary Python / HTML files in
order to make it easier to apply changes going forward.
2017-11-29 08:21:35 -05:00
856dbd31a2 Update for new transaction handling in newer django versions 2016-05-14 19:49:12 +02:00
756aa6ffbe Clean up imports
Remove unused imports and some other completely unused code.
2014-01-01 15:42:30 +01:00
ac0905a07c Also ensure unmanaged transaction is committed after purge 2013-10-19 15:47:32 +02:00
9633db3a4e Make explicit cache purge on survey votes
It should have been done through the model, but that is somehow not working.
Therefor, make an immediate purge of the results to the specific survey that
is being voted on.
2013-10-19 15:09:47 +02:00
f6fd1f2e97 Enable CSRF protection by default
Most of these forms look pretty benign, but the user profile form, which
includes an SSH key field, certainly needs to be protected.

The survey form is unprotected because it's served over insecure HTTP
and the Varnish proxy strips cookies, which is required by the builtin
CSRF protection.

Marti Raudsepp
2012-11-05 14:10:39 +01:00
91d6cce18f Render server errors with a nicer template 2011-08-17 20:28:03 +02:00
af82e7cb87 When voting on a survey without a vote, redirect to results
instead of showing an error. This is now the same behaviour as the old site.
2011-08-16 21:00:59 +02:00
9893136c98 Properly order surveys on list 2011-08-16 13:58:27 +02:00
bd167b0afa Redirect the user back to the *survey*, not the answer (which usually meant
redirecting to the wrong survey since the ids can't be mixed)
2010-06-17 14:58:03 +02:00
2942c2832a Use new get_client_ip() function instead of using REMOTE_ADDR. 2010-06-17 14:56:26 +02:00
2f671fe3d6 Add support for surveys 2009-12-28 16:12:44 +01:00