mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Compatibility with an external file storage separated in pub/ and priv/
This commit is contained in:
@@ -138,7 +138,7 @@ class EditorView(EventPermissionRequiredMixin, TemplateView):
|
||||
|
||||
# Create new file
|
||||
nonce = get_random_string(length=8)
|
||||
fname = '%s-%s/%s/%s.%s.%s' % (
|
||||
fname = 'pub/%s-%s/%s/%s.%s.%s' % (
|
||||
'event', 'settings', self.request.event.pk, 'ticketoutput_{}_layout'.format(self.identifier), nonce, 'pdf'
|
||||
)
|
||||
newname = default_storage.save(fname, cf.file)
|
||||
|
||||
Reference in New Issue
Block a user