def __init__(self, user, *args, **kwargs):
        if 'instance' in kwargs:
            self.instance = kwargs['instance']
            del kwargs['instance']

        super(MassActionForm, self).__init__(*args, **kwargs)

        self.fields['status'].queryset = Object.filter_permitted(
            user, TicketStatus.objects, mode='x')
        self.fields['status'].label = _("Status")
        self.fields['service'].queryset = Object.filter_permitted(
            user, Service.objects, mode='x')
        self.fields['service'].label = _("Service")
        self.fields['queue'].queryset = Object.filter_permitted(
            user, TicketQueue.objects, mode='x')
        self.fields['queue'].label = _("Queue")
        self.fields['delete'] = forms.ChoiceField(label=_("Delete"), choices=(('', '-----'),
                                                                              ('delete', _(
                                                                                  'Delete Completely')),
                                                                              ('trash', _('Move to Trash'))),
                                                  required=False)
Sets allowed values
dataset/ETHPy150Open treeio/treeio/treeio/services/forms.py/MassActionForm.__init__