'Add a level of education field to a form description.
Arguments:
form_desc: A form description
Keyword Arguments:
required (bool): Whether this field is required; defaults to True'

def _add_level_of_education_field(self, form_desc, required=True):

    education_level_label = _(u'Highest    level    of    education    completed')
    error_msg = accounts.REQUIRED_FIELD_LEVEL_OF_EDUCATION_MSG
    options = [(name, _(label)) for (name, label) in UserProfile.LEVEL_OF_EDUCATION_CHOICES]
    form_desc.add_field('level_of_education', label=education_level_label, field_type='select', options=options, include_default_option=True, required=required, error_messages={'required': error_msg})
