Pull requests

#93 Open
Repository
gaqzi
Branch
default
Repository
david
Branch
default

Add random_filename factory for FileField

Bitbucket cannot automatically merge this request.

The commits that make up this pull request have been removed.

Bitbucket cannot automatically merge this request due to conflicts.

Review the conflicts on the Overview tab. You can then either decline the request or merge it manually on your local system using the following commands:

hg update 
hg pull -r default https://bitbucket.org/gaqzi/django-storages
Author
  1. Björn Andersson
Reviewers
Description

A factory that can generate random filenames when used together with FileField's upload_to argument. Some storage backends doesn't handle automatic renaming of files that already exists, specifically S3 (can be enabled to raise an error when trying to overwrite a file though). In other cases we've just want to hide what the original user called the file on their device.

For these two reasons I've written a helper like the one in this patch several times and hope that you would feel it a good addition to django-storages.

  • Learn about pull requests

Comments (1)