mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Add „button“ operation mode of the widget (#778)
This commit is contained in:
@@ -101,7 +101,7 @@ def generate_widget_js(lang):
|
||||
|
||||
|
||||
@condition(etag_func=widget_js_etag)
|
||||
@cache_page(60)
|
||||
@cache_page(1 if settings.DEBUG else 60)
|
||||
def widget_js(request, lang, **kwargs):
|
||||
if lang not in [lc for lc, ll in settings.LANGUAGES]:
|
||||
raise Http404()
|
||||
|
||||
Reference in New Issue
Block a user