Skip to main content

CITextField

This class provides a case-insensitive text field specifically for PostgreSQL databases, though it is currently deprecated and maintained primarily for historical migration support. It inherits from the standard text field and directs users toward using database collations for case-insensitive behavior in modern applications.

Attributes

AttributeTypeDescription
system_check_removed_detailsdict = {"msg": "django.contrib.postgres.fields.CITextField is removed except for support in historical migrations.", "hint": "Use TextField(db_collation="…") with a case-insensitive non-deterministic collation instead.", "id": "fields.E907"}A dictionary containing the error message, hint, and identifier used by Django's system check framework to signal that this field is deprecated and removed.

Methods


system_check_removed_details()

def system_check_removed_details() - > dict

Provides details for the Django system check warning indicating that CITextField is deprecated and removed from active use.

Returns

TypeDescription
dictA dictionary containing the deprecation message, a hint for migration to db_collation, and a specific error ID.