

def field_cast_sql(self, db_type):
    if (db_type == 'inet'):
        return 'HOST(%s)'
    return '%s'

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/db/backends/postgresql/operations.py DatabaseOperations.field_cast_sql/original