<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/model_fields/test_imagefield.py, branch devmain</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/chango.git/atom?h=devmain</id>
<link rel='self' href='http://cgit.adnoto.dev/chango.git/atom?h=devmain'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/'/>
<updated>2025-07-23T13:09:43Z</updated>
<entry>
<title>Removed double spaces after periods and within phrases.</title>
<updated>2025-07-23T13:09:43Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2025-07-18T13:37:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e'/>
<id>urn:sha1:1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35139 -- Prevented file read after ImageField is saved to storage.</title>
<updated>2024-05-21T22:25:56Z</updated>
<author>
<name>John Parton</name>
<email>john.parton.iv@gmail.com</email>
</author>
<published>2024-01-24T22:22:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9c5fe93349bd4339c41d057b87046e5d28be6f77'/>
<id>urn:sha1:9c5fe93349bd4339c41d057b87046e5d28be6f77</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Used addCleanup() in tests where appropriate.</title>
<updated>2023-12-31T09:01:31Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2023-12-31T09:01:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=d88ec42bd0a37340c8477a6f20bf26e58bd84735'/>
<id>urn:sha1:d88ec42bd0a37340c8477a6f20bf26e58bd84735</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #34517 -- Restored skipping ImageFileField.update_dimension_fields without width/height fields.</title>
<updated>2023-06-19T03:24:42Z</updated>
<author>
<name>François Freitag</name>
<email>mail@franek.fr</email>
</author>
<published>2023-06-17T16:00:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=bcacc6321ae819965f478bfee2072a796801f298'/>
<id>urn:sha1:bcacc6321ae819965f478bfee2072a796801f298</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>Fixed #34517 -- Avoided connection post_init signal to ImageField without width/height fields.</title>
<updated>2023-05-03T04:35:19Z</updated>
<author>
<name>Orhan Hirsch</name>
<email>orhanhenrik@gmail.com</email>
</author>
<published>2023-04-26T07:22:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=ea53e7c09f1b8864c20c65976bbeaeab77abdaec'/>
<id>urn:sha1:ea53e7c09f1b8864c20c65976bbeaeab77abdaec</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bumped minimum isort version to 5.1.0.</title>
<updated>2020-07-30T08:58:59Z</updated>
<author>
<name>David Smith</name>
<email>smithdc@gmail.com</email>
</author>
<published>2020-07-24T06:25:47Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=e74b3d724e5ddfef96d1d66bd1c58e7aae26fc85'/>
<id>urn:sha1:e74b3d724e5ddfef96d1d66bd1c58e7aae26fc85</id>
<content type='text'>
Fixed inner imports per isort 5.
isort 5.0.0 to 5.1.0 was unstable.
</content>
</entry>
<entry>
<title>Fixed #21238 -- Fixed restoring attributes when pickling FileField and ImageField.</title>
<updated>2020-01-09T08:37:59Z</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2019-11-10T21:55:48Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=f600e3fad6e92d9fe1ad8b351dc8446415f24345'/>
<id>urn:sha1:f600e3fad6e92d9fe1ad8b351dc8446415f24345</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #21238 -- Added more tests for pickling FileField and ImageField.</title>
<updated>2020-01-09T08:18:53Z</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2020-01-09T08:16:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=aaea9deac4dea08ada934a930cfc27765358d8da'/>
<id>urn:sha1:aaea9deac4dea08ada934a930cfc27765358d8da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unused lines in ImageFieldTests.test_pickle().</title>
<updated>2020-01-09T07:44:39Z</updated>
<author>
<name>Hasan Ramezani</name>
<email>hasan.r67@gmail.com</email>
</author>
<published>2019-11-10T19:02:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=66e16dcc99f7442b135697989b79a8bd12c63272'/>
<id>urn:sha1:66e16dcc99f7442b135697989b79a8bd12c63272</id>
<content type='text'>
</content>
</entry>
</feed>
