def __init__(self, *args, **kwargs):
        self.order = kwargs.pop('order')
        self.request = kwargs.pop('request')
        self.shop = kwargs.pop('shop')
        self.payment_modules = self.shop.get_payment_modules(self.request)

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

        method_choices = [(m.key, m.name) for m in self.payment_modules]
        if len(method_choices) > 1:
            method_choices.insert(0, ('', '---------'))
        self.fields['payment_method'] = forms.ChoiceField(
            label=_('Payment method'), choices=method_choices,
        )
dataset/ETHPy150Open matthiask/plata/plata/shop/forms.py/ConfirmationForm.__init__/original