diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-02-23 22:39:22 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2010-02-23 22:39:22 +0000 |
| commit | 5366aa96fef0ce55fc425cf273c7debe74d99305 (patch) | |
| tree | af4e584bfc0fcdc4b7bb8e86d1f398e41e01d169 /docs | |
| parent | 43b47a87d3ae075937b7dc181f8284576e5d73ac (diff) | |
Fixed #10258: handle duplicate file names better.
Instead of just continually appending "_" to duplicate file names, Django's
default storage now appends `_1`, `_2`, `_3`, etc.
Thanks to ianschenck and Thilo.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12552 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/howto/custom-file-storage.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/howto/custom-file-storage.txt b/docs/howto/custom-file-storage.txt index cfb3226289..5005feaa80 100644 --- a/docs/howto/custom-file-storage.txt +++ b/docs/howto/custom-file-storage.txt @@ -88,5 +88,5 @@ the provided filename into account. The ``name`` argument passed to this method will have already cleaned to a filename valid for the storage system, according to the ``get_valid_name()`` method described above. -The code provided on ``Storage`` simply appends underscores to the filename -until it finds one that's available in the destination directory. +The code provided on ``Storage`` simply appends ``"_1"``, ``"_2"``, etc. to the +filename until it finds one that's available in the destination directory. |
