From c1b268312b457dff4b818492fe33b5913dcb0117 Mon Sep 17 00:00:00 2001 From: Isaac Bythewood Date: Sat, 29 Sep 2012 06:55:49 +0000 Subject: [PATCH] Removed CSRF temporarily to fix many bugs. --- .travis.yml | 2 +- pinry/core/templates/core/login.html | 1 - pinry/core/templates/core/register.html | 1 - pinry/pins/templates/pins/new_pin.html | 1 - pinry/pins/templates/pins/templatetags/new_pin.html | 2 -- pinry/pins/tests.py | 2 +- pinry/settings/__init__.py | 1 - 7 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 365208d..1cdde47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,4 +5,4 @@ python: # command to install dependencies install: pip install -r requirements.txt # command to run tests -script: python manage.py test core api +script: python manage.py test core api pins diff --git a/pinry/core/templates/core/login.html b/pinry/core/templates/core/login.html index 6892f64..c8c025a 100644 --- a/pinry/core/templates/core/login.html +++ b/pinry/core/templates/core/login.html @@ -11,7 +11,6 @@

Login

- {% csrf_token %} {% for field in form %} {% bootstrap_field field %} {% endfor %} diff --git a/pinry/core/templates/core/register.html b/pinry/core/templates/core/register.html index 68d56e8..0ecab57 100644 --- a/pinry/core/templates/core/register.html +++ b/pinry/core/templates/core/register.html @@ -11,7 +11,6 @@

Register

- {% csrf_token %} {% for field in form %} {% bootstrap_field field %} {% endfor %} diff --git a/pinry/pins/templates/pins/new_pin.html b/pinry/pins/templates/pins/new_pin.html index 908e6cc..439eb4c 100644 --- a/pinry/pins/templates/pins/new_pin.html +++ b/pinry/pins/templates/pins/new_pin.html @@ -12,7 +12,6 @@

New Pin

{{ form.non_field_errors }} - {% csrf_token %} {% for field in form %} {% bootstrap_field field %} {% endfor %} diff --git a/pinry/pins/templates/pins/templatetags/new_pin.html b/pinry/pins/templates/pins/templatetags/new_pin.html index b9b5cbe..835f454 100644 --- a/pinry/pins/templates/pins/templatetags/new_pin.html +++ b/pinry/pins/templates/pins/templatetags/new_pin.html @@ -5,9 +5,7 @@

New Pin

- {% csrf_token %}