mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
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:
committed by
Raphael Michel
parent
6693570995
commit
310a14a393
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user