django/django — pull request #3026 by pavel-shpilev (2014-08-05 10:49:49+00:00)
Title: Fixed #9893 -- Filename could exceed max_length on collision

Passing max_length argument into the Storage's save() and get_available_name() methods.
Rewriting get_available_name() so filenames do not exceed max_length when there is a collision.
Adding test for the case.