def _validate_alias(request, form, successmsg, callback=None):
    if form.is_valid():
        try:
            alias = form.save()
        except IntegrityError:
            raise Conflict(_("Alias with this name already exists"))
        if callback:
            callback(request.user, alias)
        return render_to_json_response(successmsg)

    return render_to_json_response({'form_errors': form.errors}, status=400)
Compute set of unique rows/tuples occurring in this table
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/views/alias.py/_validate_alias--crossover with--dataset/ETHPy150Open cloudera/ibis/ibis/expr/api.py/_table_distinct