<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chango.git/tests/model_fields/tests.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>2026-04-22T21:06:29Z</updated>
<entry>
<title>Fixed #35870 -- Made blank choice label in forms more accessible.</title>
<updated>2026-04-22T21:06:29Z</updated>
<author>
<name>Annabelle Wiegart</name>
<email>annabelle.wiegart@proton.me</email>
</author>
<published>2026-01-18T19:03:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=63c56cda133a85a158502891c40465bc0331d3d9'/>
<id>urn:sha1:63c56cda133a85a158502891c40465bc0331d3d9</id>
<content type='text'>
Added new constant django.db.models.fields.BLANK_CHOICE_LABEL for
an accessible and translatable blank choice label in forms.
Deprecated django.db.models.fields.BLANK_CHOICE_DASH constant.
Added the immediately deprecated transitional setting
USE_BLANK_CHOICE_DASH.

Co-Authored-By: Marijke Luttekes &lt;mail@marijkeluttekes.dev&gt;
</content>
</entry>
<entry>
<title>Fixed #36727 -- Deprecated Field.get_placeholder in favor of get_placeholder_sql.</title>
<updated>2026-03-13T00:01:02Z</updated>
<author>
<name>Simon Charette</name>
<email>charette.s@gmail.com</email>
</author>
<published>2025-11-22T18:32:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1a8fd5cf75bf855852f6bc2f75c3da9f7b145669'/>
<id>urn:sha1:1a8fd5cf75bf855852f6bc2f75c3da9f7b145669</id>
<content type='text'>
The lack of ability of the get_placeholder call chain to return SQL and
parameters separated so they can be mogrified by the backend at execution time
forced implementations to dangerously interpolate potentially user controlled
values.

The get_placeholder_sql name was chosen due to its proximity to the previous
method, but other options such as Field.as_sql were considered but ultimately
rejected due to its different input signature compared to Expression.as_sql
that might have lead to confusion.

There is a lot of overlap between what Field.get_db_prep_value and
get_placeholder_sql do but folding the latter in the former would require
changing its return signature to return expression which is a way more invasive
change than what is proposed here.

Given we always call get_db_prep_value it might still be an avenue worth
exploring in the future to offer a publicly documented interface to allow field
to take an active part in the compilation chain.

Thanks Jacob for the review.
</content>
</entry>
<entry>
<title>Fixed #35766 -- Handled slices in BaseChoiceIterator.</title>
<updated>2024-09-18T14:45:53Z</updated>
<author>
<name>Sarah Boyce</name>
<email>42296566+sarahboyce@users.noreply.github.com</email>
</author>
<published>2024-09-17T10:40:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=ae1ee24178ecd53ac5ef3fc2055e4be8b9602ac9'/>
<id>urn:sha1:ae1ee24178ecd53ac5ef3fc2055e4be8b9602ac9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #24561 -- Added support for callables on model fields' choices.</title>
<updated>2023-09-14T13:15:33Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2023-08-31T12:09:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=691f70c47755c7f55fa75ce607d028f81468b745'/>
<id>urn:sha1:691f70c47755c7f55fa75ce607d028f81468b745</id>
<content type='text'>
</content>
</entry>
<entry>
<title> Fixed #31262 -- Added support for mappings on model fields and ChoiceField's choices.</title>
<updated>2023-08-31T01:57:40Z</updated>
<author>
<name>Nick Pope</name>
<email>nick@nickpope.me.uk</email>
</author>
<published>2023-08-31T01:57:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=500e01073adda32d5149624ee9a5cb7aa3d3583f'/>
<id>urn:sha1:500e01073adda32d5149624ee9a5cb7aa3d3583f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added tests for model field's choices iterator/iterable values.</title>
<updated>2023-08-22T03:55:23Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2023-08-16T18:15:31Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=f1c0a3baf74baae94a0d4137782e15edcdf54a7e'/>
<id>urn:sha1:f1c0a3baf74baae94a0d4137782e15edcdf54a7e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #34388 -- Allowed using choice enumeration types directly on model and form fields.</title>
<updated>2023-03-21T18:44:41Z</updated>
<author>
<name>T. Franzel</name>
<email>tfranzel@users.noreply.github.com</email>
</author>
<published>2023-03-10T23:34:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=a2eaea8f22305b57dff3ab13add2e2887287bb6f'/>
<id>urn:sha1:a2eaea8f22305b57dff3ab13add2e2887287bb6f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Relaxed some query ordering assertions in various tests.</title>
<updated>2022-04-14T10:12:13Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-04-14T10:12:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=1760ad4e8cdbf34a0f38deae300460a0b9c38eac'/>
<id>urn:sha1:1760ad4e8cdbf34a0f38deae300460a0b9c38eac</id>
<content type='text'>
It accounts for differences seen on MySQL with MyISAM storage engine.</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>Fixed #33441 -- Restored immutability of models.Field.__hash__().</title>
<updated>2022-01-14T06:00:48Z</updated>
<author>
<name>Adam Johnson</name>
<email>me@adamj.eu</email>
</author>
<published>2022-01-13T18:51:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/chango.git/commit/?id=fdfa97fb166ef5065aa2b229f19cb4ce303084e5'/>
<id>urn:sha1:fdfa97fb166ef5065aa2b229f19cb4ce303084e5</id>
<content type='text'>
Regression in 502e75f9ed5476ffe8229109acf0c23999d4b533.
</content>
</entry>
</feed>
