mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Compatibility with an external file storage separated in pub/ and priv/
This commit is contained in:
@@ -29,7 +29,7 @@ class Command(BaseCommand):
|
||||
fname = gs.settings.get('widget_file_{}'.format(lc))
|
||||
if not fname or gs.settings.get('widget_checksum_{}'.format(lc), '') != checksum:
|
||||
newname = default_storage.save(
|
||||
'widget/widget.{}.{}.js'.format(lc, checksum),
|
||||
'pub/widget/widget.{}.{}.js'.format(lc, checksum),
|
||||
ContentFile(data)
|
||||
)
|
||||
gs.settings.set('widget_file_{}'.format(lc), 'file://' + newname)
|
||||
|
||||
Reference in New Issue
Block a user