mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #33872 -- Deprecated django.contrib.postgres.fields.CIText/CICharField/CIEmailField/CITextField.
This commit is contained in:
parent
09e837c5d9
commit
cb791a2540
15 changed files with 228 additions and 21 deletions
|
@ -259,6 +259,8 @@ transform do not change. For example::
|
|||
|
||||
.. class:: CIText(**options)
|
||||
|
||||
.. deprecated:: 4.2
|
||||
|
||||
A mixin to create case-insensitive text fields backed by the citext_ type.
|
||||
Read about `the performance considerations`_ prior to using it.
|
||||
|
||||
|
@ -274,9 +276,29 @@ transform do not change. For example::
|
|||
Several fields that use the mixin are provided:
|
||||
|
||||
.. class:: CICharField(**options)
|
||||
|
||||
.. deprecated:: 4.2
|
||||
|
||||
``CICharField`` is deprecated in favor of
|
||||
``CharField(db_collation="…")`` with a case-insensitive
|
||||
non-deterministic collation.
|
||||
|
||||
.. class:: CIEmailField(**options)
|
||||
|
||||
.. deprecated:: 4.2
|
||||
|
||||
``CIEmailField`` is deprecated in favor of
|
||||
``EmailField(db_collation="…")`` with a case-insensitive
|
||||
non-deterministic collation.
|
||||
|
||||
.. class:: CITextField(**options)
|
||||
|
||||
.. deprecated:: 4.2
|
||||
|
||||
``CITextField`` is deprecated in favor of
|
||||
``TextField(db_collation="…")`` with a case-insensitive
|
||||
non-deterministic collation.
|
||||
|
||||
These fields subclass :class:`~django.db.models.CharField`,
|
||||
:class:`~django.db.models.EmailField`, and
|
||||
:class:`~django.db.models.TextField`, respectively.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue