Add „button“ operation mode of the widget (#778)

This commit is contained in:
Raphael Michel
2018-03-03 11:20:41 +01:00
committed by GitHub
parent 0259b2e5b9
commit 303b9912ff
3 changed files with 325 additions and 185 deletions

View File

@@ -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()