def db_type(self, connection):
        db_types = {'django.db.backends.mysql':'longblob',
                    'django.db.backends.sqlite3':'blob',
                    'django.db.backends.postgres':'text',
                    'django.db.backends.postgresql_psycopg2':'text'}
        try:
            return db_types[connection.settings_dict['ENGINE']]
        except __HOLE__, e:
            print str(e)
            raise Exception, '%s currently works only with: %s' % (
                self.__class__.__name__,', '.join(db_types.keys()))
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/db/models.py/CompressedTextField.db_type