# Django 2.1.8.dev20190330215650 documentation

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

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

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

    class CIText:

        def get_internal_type(self):
            return 'CI' + super().get_internal_type()

        def db_type(self, connection):
            return 'citext'

    class CICharField(CIText, CharField):
        pass

    class CIEmailField(CIText, EmailField):
        pass

    class CITextField(CIText, TextField):
        pass