• Language: en
  • 1.11
  • 2.0
  • Documentation version: development

Source code for django.contrib.postgres.fields.citext

from django.db.models import CharField, EmailField, TextField

__all__ = ['CICharField', 'CIEmailField', 'CIText', 'CITextField']


[docs]class CIText: def get_internal_type(self): return 'CI' + super().get_internal_type() def db_type(self, connection): return 'citext'
[docs]class CICharField(CIText, CharField): pass
[docs]class CIEmailField(CIText, EmailField): pass
[docs]class CITextField(CIText, TextField): pass
Back to Top