'Sets choices and initial value'

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

    super(SettingsForm, self).__init__(*args, **kwargs)
    self.fields['default_ticket_status'].label = _('Default    Ticket    Status')
    self.fields['default_ticket_queue'].label = _('Default    Queue')
    self.fields['send_email_to_caller'].label = _('Notify    Caller    By    E-mail')
    self.fields['send_email_template'].label = _('E-mail    Template')
    self.fields['default_ticket_status'].queryset = Object.filter_permitted(user, TicketStatus.objects, mode='x')
    self.fields['default_ticket_queue'].queryset = Object.filter_permitted(user, TicketQueue.objects, mode='x')
    try:
        conf = ModuleSetting.get_for_module('treeio.services', 'default_ticket_status')[0]
        default_ticket_status = TicketStatus.objects.get(pk=long(conf.value))
        self.fields['default_ticket_status'].initial = default_ticket_status.id
    except Exception:
        pass
    try:
        conf = ModuleSetting.get_for_module('treeio.services', 'default_ticket_queue')[0]
        default_ticket_queue = TicketQueue.objects.get(pk=long(conf.value))
        self.fields['default_ticket_queue'].initial = default_ticket_queue.id
    except Exception:
        pass
    try:
        conf = ModuleSetting.get_for_module('treeio.services', 'send_email_to_caller')[0]
        self.fields['send_email_to_caller'].initial = conf.value
    except:
        self.fields['send_email_to_caller'].initial = settings.HARDTREE_SEND_EMAIL_TO_CALLER
    try:
        conf = ModuleSetting.get_for_module('treeio.services', 'send_email_template')[0]
        self.fields['send_email_template'].initial = conf.value
    except Exception:
        self.fields['send_email_template'].initial = get_template_source('services/emails/notify_caller.html')
