Move middleware functionality to utils.py (#154)

This simplifies providing an `event_view` method which works as
decorator for presale/ views (e.g. for plugins), providing passing
requests with event and organizer context if possible, and re-routing or
failing appropriately otherwise.
This commit is contained in:
Tobias Kunze
2016-07-26 10:27:59 +02:00
committed by Raphael Michel
parent 6693570995
commit 310a14a393
3 changed files with 84 additions and 58 deletions

View File

@@ -85,7 +85,7 @@ Before you check in your code into git, always run the static checkers and unit
flake8 .
isort -c -rc .
python manage.py validate
python manage.py check
py.test
The ``flake8`` command by default is a bit stricter than what we really enforce, but we do enforce that all commits