'Sets allowed values'

def __init__(self, user, *args, **kwargs):

    super(AgentForm, self).__init__(*args, **kwargs)
    self.fields['related_user'].label = _('Related    user')
    self.fields['related_user'].widget.attrs.update({'class': 'autocomplete', 'callback': reverse('identities_ajax_user_lookup')})
    self.fields['active'].label = _('Active')
    self.fields['occupied'].label = _('Occupied')
    self.fields['available_from'].label = _('Available    from')
    self.fields['available_to'].label = _('Available    to')
