django1/tests/file_storage
Mariusz Felisiak b7d4a6fa65 [3.1.x] Fixed #32718 -- Relaxed file name validation in FileField.
- Validate filename returned by FileField.upload_to() not a filename
  passed to the FileField.generate_filename() (upload_to() may
  completely ignored passed filename).
- Allow relative paths (without dot segments) in the generated filename.

Thanks to Jakub Kleň for the report and review.
Thanks to all folks for checking this patch on existing projects.
Thanks Florian Apolloner and Markus Holtermann for the discussion and
implementation idea.

Regression in 0b79eb3691.

Backport of b55699968f from main.
2021-05-13 08:56:06 +02:00
..
__init__.py Removed unneeded imports in tests's __init__.py and unified them. 2013-09-09 23:01:07 +02:00
models.py Fixed #28184 -- Allowed using a callable for FileField and ImageField storage. 2020-04-08 11:26:17 +02:00
test_generate_filename.py [3.1.x] Fixed #32718 -- Relaxed file name validation in FileField. 2021-05-13 08:56:06 +02:00
tests.py [3.1.x] Fixed #31941 -- Corrected FileField.deconstruct() with a callable storage. 2020-09-02 11:07:43 +02:00
urls.py Updated test URL patterns to use path() and re_path(). 2018-12-31 10:47:32 -05:00