def calc_inline_field_name(line_num, model_field):
    """
    Generate inline field name
    :param line_num:  Line number
    :param model_field: Model field name 
    :return: the inline field name in the UI form. 
    """
    return 'lines-{0}-{1}'.format(str(line_num), model_field)