'Return the database column type for a UuidField.'

def db_type(self, connection=None):

    if (connection and (u'postgres' in connection.vendor)):
        return u'uuid'
    else:
        return u'char({})'.format(self.max_length)
