| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-07-23 | Removed double spaces after periods and within phrases. | Sarah Boyce | |
| 2024-05-22 | Fixed #35139 -- Prevented file read after ImageField is saved to storage. | John Parton | |
| 2023-12-31 | Used addCleanup() in tests where appropriate. | Mariusz Felisiak | |
| 2023-06-19 | Refs #34517 -- Restored skipping ImageFileField.update_dimension_fields ↵ | François Freitag | |
| without width/height fields. This avoids reading the image size when the dimensions fields (image_width, image_height) do not exist, as that operation may be expensive. Partially reverts ea53e7c09f1b8864c20c65976bbeaeab77abdaec, that dropped the check for the dimension fields in update_dimension_fields(), because the post_init signal was no longer registered without dimension fields. However, another code path to that function exists: when the ImageFileField is save()d, the name from the storage is setattr()ed on the field, and ImageFileDescriptor calls update_dimension_fields() because the image size might have changed. Keep bailing out early when dimensions are unused. Besides, computing the image dimensions causes to close() the file, resulting in a backward-incompatible change. The test protects against that change. | |||
| 2023-05-03 | Fixed #34517 -- Avoided connection post_init signal to ImageField without ↵ | Orhan Hirsch | |
| width/height fields. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2020-07-30 | Bumped minimum isort version to 5.1.0. | David Smith | |
| Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable. | |||
| 2020-01-09 | Fixed #21238 -- Fixed restoring attributes when pickling FileField and ↵ | Hasan Ramezani | |
| ImageField. | |||
| 2020-01-09 | Refs #21238 -- Added more tests for pickling FileField and ImageField. | Hasan Ramezani | |
| 2020-01-09 | Removed unused lines in ImageFieldTests.test_pickle(). | Hasan Ramezani | |
| 2019-10-29 | Used more specific unittest assertions in tests. | Nick Pope | |
| * assertIsNone()/assertIsNotNone() instead of comparing to None. * assertLess() for < comparisons. * assertIs() for 'is' expressions. * assertIsInstance() for isinstance() expressions. * rounding of assertAlmostEqual() for round() expressions. * assertIs(..., True/False) instead of comparing to True/False. * assertIs()/assertIsNot() for ==/!= comparisons. * assertNotEqual() for == comparisons. * assertTrue()/assertFalse() instead of comparing to True/False. | |||
| 2018-03-16 | Fixed hanging indentation in various code. | Mariusz Felisiak | |
| 2017-06-01 | Fixed #28242 -- Moved ImageField file extension validation to the form field. | Manatsawin Hanmongkolchai | |
| 2017-01-29 | Removed unneeded parentheses in class definitions | Claude Paroz | |
| 2017-01-20 | Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. | Tim Graham | |
| These functions do nothing on Python 3. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-07-16 | Fixed #26900 -- Fixed crash accessing deferred FileFields. | Tim Graham | |
| 2016-06-30 | Fixed #21548 -- Added FileExtensionValidator and validate_image_file_extension. | Berker Peksag | |
| 2016-06-16 | Fixed #26747 -- Used more specific assertions in the Django test suite. | Jon Dufresne | |
| 2016-04-30 | Fixed #26058 -- Delegated os.path bits of FileField's filename generation to ↵ | Cristiano | |
| the Storage. | |||
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2016-01-29 | Refs #26022 -- Used context manager version of assertRaises in tests. | Hasan | |
| 2015-09-09 | Serialized some tests that interact with the filesystem. | Aymeric Augustin | |
| Considering the APIs exercised by these test cases, it's hard to make them independent. | |||
| 2015-04-27 | Used assertIsInstance in tests. | Alasdair Nicol | |
| 2014-05-26 | Fixed a few ResourceWarning in the test suite. Refs #22680. | Loic Bistuer | |
| 2014-03-21 | Removed PIL compatability layer per deprecation timeline. | Tim Graham | |
| refs #19934. | |||
| 2013-11-26 | Fixed #21512 -- Added more complete information about Pillow and PIL in ↵ | Vajrasky Kok | |
| model_fields and model_forms tests. | |||
| 2013-10-19 | Removed unused local variables in tests. | Tim Graham | |
| 2013-10-04 | Fixed #21217 -- Avoid connecting `(pre|post)_init` signals to abstract senders. | Simon Charette | |
| 2013-07-29 | Removed most of absolute_import imports | Claude Paroz | |
| Should be unneeded with Python 2.7 and up. Added some unicode_literals along the way. | |||
| 2013-07-01 | Stopped using django.utils.unittest in the test suite. | Aymeric Augustin | |
| Refs #20680. | |||
| 2013-05-14 | Fixed #19934 - Use of Pillow is now preferred over PIL. | Daniel Lindsley | |
| This starts the deprecation period for PIL (support to end in 1.8). | |||
| 2013-04-12 | Modified model_fields for unittest2 discovery. | Preston Timmons | |
