Moving the csrf exemption to the mixin. #195 /spend 20m

3 jobs for 195-csrf-verification-failed-csrf-cookie-when-submitting-forms in 9 minutes and 4 seconds (queued for 1 second)
Status Job ID Name Coverage
  Test
passed #1549
memopol
docs build

00:01:38

failed #1548
memopol
qa checks

00:01:30

failed #1547
memopol
unit tests

00:05:55

78.0%
 
Name Stage Failure
failed
unit tests Test There is an unknown failure, please try again
>       return super(HomeView, self).dispatch(*args, **kwargs)
E NameError: global name 'HomeView' is not defined

src/representatives_positions/views.py:22: NameError
==================== 72 failed, 36 passed in 180.88 seconds ====================
ERROR: InvocationError: '/home/gitlab-runner/builds/8361f2f7/0/memopol/memopol/.tox/py27/bin/py.test src/'
___________________________________ summary ____________________________________
ERROR: py27: commands failed
ERROR: Job failed: exit status 1
failed
qa checks Test There is an unknown failure, please try again
      Successfully uninstalled political-memory-0.0.1
Running setup.py develop for political-memory
Successfully installed beautifulsoup4-4.6.0 codecov-2.0.9 coverage-4.4.1 django-responsediff-0.7.1 flake8-2.6.2 funcsigs-1.0.2 html5lib-0.999999999 mccabe-0.5.3 mock-2.0.0 pbr-3.0.1 pep8-1.7.0 pluggy-0.4.0 political-memory py-1.4.33 pycodestyle-2.0.0 pyflakes-1.2.3 pytest-2.9.2 pytest-cov-2.5.1 pytest-django-2.9.1 tox-2.7.0 virtualenv-15.1.0 webencodings-0.5.1
qa runtests: commands[3] | flake8 src --exclude */migrations,docs,static --ignore E128
src/representatives_positions/views.py:22:22: F821 undefined name 'HomeView'
ERROR: InvocationError: '/home/gitlab-runner/builds/eeb87b9a/0/memopol/memopol/.tox/qa/bin/flake8 src --exclude */migrations,docs,static --ignore E128'
___________________________________ summary ____________________________________
ERROR: qa: commands failed
ERROR: Job failed: exit status 1