mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Compatibility with an external file storage separated in pub/ and priv/
This commit is contained in:
@@ -86,7 +86,7 @@ class ItemCategory(LoggedModel):
|
||||
|
||||
|
||||
def itempicture_upload_to(instance, filename: str) -> str:
|
||||
return '%s/%s/item-%s-%s.%s' % (
|
||||
return 'pub/%s/%s/item-%s-%s.%s' % (
|
||||
instance.event.organizer.slug, instance.event.slug, instance.id,
|
||||
str(uuid.uuid4()), filename.split('.')[-1]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user