diff options
| author | saJaeHyukc <wogur981208@gmail.com> | 2024-09-13 20:07:37 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-09-16 13:31:06 +0200 |
| commit | fd92f247891950bc92369b2457e032ec11f0147d (patch) | |
| tree | e2c1245d48f40d9e05ed1d64b29cc0664dd57e1b /docs | |
| parent | 121747fdba5862ac8c4e26ec3b8f597385e9aa05 (diff) | |
Fixed #34887 -- Added support for unlimited models.CharField on SQLite.
Signed-off-by: saJaeHyukc <wogur981208@gmail.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/fields.txt | 8 | ||||
| -rw-r--r-- | docs/releases/5.2.txt | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 612949ab4a..5266135dd2 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -720,8 +720,8 @@ The default form widget for this field is a :class:`~django.forms.TextInput`. The maximum length (in characters) of the field. The ``max_length`` is enforced at the database level and in Django's validation using :class:`~django.core.validators.MaxLengthValidator`. It's required for all - database backends included with Django except PostgreSQL, which supports - unlimited ``VARCHAR`` columns. + database backends included with Django except PostgreSQL and SQLite, which + supports unlimited ``VARCHAR`` columns. .. note:: @@ -730,6 +730,10 @@ The default form widget for this field is a :class:`~django.forms.TextInput`. ``max_length`` for some backends. Refer to the :doc:`database backend notes </ref/databases>` for details. + .. versionchanged:: 5.2 + + Support for unlimited ``VARCHAR`` columns was added on SQLite. + .. attribute:: CharField.db_collation Optional. The database collation name of the field. diff --git a/docs/releases/5.2.txt b/docs/releases/5.2.txt index 09d1dff49a..8f969a4b85 100644 --- a/docs/releases/5.2.txt +++ b/docs/releases/5.2.txt @@ -223,6 +223,10 @@ Models expression contains a set-returning function, enforcing subquery evaluation. This is necessary for many Postgres set-returning functions. +* :attr:`CharField.max_length <django.db.models.CharField.max_length>` is no + longer required to be set on SQLite, which supports unlimited ``VARCHAR`` + columns. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ |
