mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
@@ -15,6 +15,7 @@ from django.core.files.storage import FileSystemStorage
|
||||
temp_storage_location = tempfile.mkdtemp()
|
||||
temp_storage = FileSystemStorage(location=temp_storage_location)
|
||||
|
||||
|
||||
class Storage(models.Model):
|
||||
def custom_upload_to(self, filename):
|
||||
return 'foo'
|
||||
|
||||
Reference in New Issue
Block a user