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

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

        self.fields['status'].queryset = Object.filter_permitted(user,
                                                                 SaleStatus.objects.filter(
                                                                     use_leads=True),
                                                                 mode='x')
        self.fields['status'].label = _("Status:")

        self.fields['assignedto'].queryset = User.objects
        self.fields['assignedto'].label = _("Assign To:")
        # self.fields['assignedto'].widget.attrs.update({'class': 'autocomplete',
        #                                                'callback': reverse('identities_ajax_user_lookup')})
dataset/ETHPy150Open treeio/treeio/treeio/sales/forms.py/LeadMassActionForm.__init__/original