'Sets choices and initial value'

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

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