'Sets choices and initial value'

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

    super(SettingsForm, self).__init__(*args, **kwargs)
    self.fields['default_item_status'].queryset = ItemStatus.objects.filter(trash=False)
    try:
        conf = ModuleSetting.get_for_module('treeio.infrastructure', 'default_item_status')[0]
        default_item_status = ItemStatus.objects.get(pk=long(conf.value), trash=False)
        self.fields['default_item_status'].initial = default_item_status.id
    except Exception:
        pass
