<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_field(mc, field_name):
 """ detect if a model has a given field has :param field_name: :param mc: :return: """

    try:
        mc._meta.get_field(field_name)
    except FieldDoesNotExist:
        return False
    return True