mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
* Upgrade to Django 2.0 * more models * i18n foo * Update setup.py * Fix Sentry exception PRETIXEU-JC * Enforce slug uniqueness * Import sorting * Upgrade to Django 2.1 * Travis config * Try to fix PostgreSQL failure * Smaller test matrix * staticfiles→static * Include request in all authenticate() calls
12 lines
455 B
Python
12 lines
455 B
Python
from pretix.presale.utils import _event_view
|
|
|
|
|
|
def plugin_event_urls(urllist, plugin):
|
|
for entry in urllist:
|
|
if hasattr(entry, 'url_patterns'):
|
|
plugin_event_urls(entry.url_patterns, plugin)
|
|
elif hasattr(entry, 'callback'):
|
|
entry.callback = _event_view(entry.callback, require_plugin=plugin,
|
|
require_live=getattr(entry.pattern, '_require_live', True))
|
|
return urllist
|