From 6083c64abf465c011eb6b8963e0fd7d010da0d58 Mon Sep 17 00:00:00 2001 From: Jochen Kupperschmidt Date: Tue, 7 Nov 2017 01:07:04 +0100 Subject: [PATCH] Pre-select bank transfer as the default payment method for orders in the mark-as-paid form --- byceps/blueprints/shop_order_admin/forms.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/byceps/blueprints/shop_order_admin/forms.py b/byceps/blueprints/shop_order_admin/forms.py index 5e03a1181..65ccfb8de 100644 --- a/byceps/blueprints/shop_order_admin/forms.py +++ b/byceps/blueprints/shop_order_admin/forms.py @@ -25,4 +25,7 @@ PAYMENT_METHOD_CHOICES = [ class MarkAsPaidForm(LocalizedForm): - payment_method = RadioField('Zahlungsart', choices=PAYMENT_METHOD_CHOICES , validators=[InputRequired()]) + payment_method = RadioField('Zahlungsart', + choices=PAYMENT_METHOD_CHOICES, + default=PAYMENT_METHOD_CHOICES[0][0], + validators=[InputRequired()]) -- 2.34.2