summaryrefslogtreecommitdiff
path: root/tests/file_storage/models.py
AgeCommit message (Collapse)Author
2025-10-15Fixed 36622 -- Prevented LazyObject FileField storages from evaluating at ↵Clifford Gama
boot time. Co-authored-by: Fabien MICHEL <fmichel@adista.fr>
2025-01-03Fixed #35740 -- Fixed FileFieldStorageTests.test_extended_length_storage ↵YashRaj1506
when using bcachefs. PC_NAME_MAX on bcachefs is 512, which was greater than the file field max_length.
2024-08-05Fixed #35657 -- Made FileField handle db_default values.Sarah Boyce
2023-01-23Fixed #34192 -- Preserved callable storage when it returns default_storage.Matt Westcott
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-04-08Fixed #28184 -- Allowed using a callable for FileField and ImageField storage.miigotu
2019-08-18Refs #28428 -- Made FileField.upload_to support pathlib.Path.Claude Paroz
2019-08-18Refs #28428 -- Added test for a callable FileField.upload_to that returns ↵Claude Paroz
pathlib.Path.
2015-09-23Refs #9893 -- Removed shims for lack of max_length support in file storage ↵Tim Graham
per deprecation timeline.
2015-05-12Fixed #24105 -- Called Storage.get_valid_name() when upload_to is callableAbhaya Agarwal
2015-02-23Guaranteed removal of temporary files during tests.Aymeric Augustin
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
2015-02-06Sorted imports with isort; refs #23860.Tim Graham
2015-01-12Fixed #9893 -- Allowed using a field's max_length in the Storage.Pavel Shpilev
2014-09-24Removed numbering from the models.py header of some test packages.Loic Bistuer
This is a reliqua from the early days of the modeltests/regressiontests era.
2014-06-23Created import-time test temp dirs in known locationClaude Paroz
Refs #17215. In the same spirit as 5de31cb8cb.
2013-11-02PEP8 cleanupJason Myers
Signed-off-by: Jason Myers <jason@jasonamyers.com>
2013-10-27Rearranged some file-related testsClaude Paroz
Just moving around some tests to be more logically grouped.
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner