Fixed payment and ticketoutput enable/disable switches and their

implications
This commit is contained in:
Raphael Michel
2015-06-15 19:28:56 +02:00
parent e3f7e73063
commit 88f1ae6f89
4 changed files with 5 additions and 5 deletions

View File

@@ -75,8 +75,8 @@ class SettingsForm(forms.Form):
This form is meant to be used for modifying Event- or OrganizerSettings
"""
BOOL_CHOICES = (
('True', _('enabled')),
('False', _('disabled')),
('True', _('enabled')),
)
def __init__(self, *args, **kwargs):

View File

@@ -98,10 +98,9 @@ class BasePaymentProvider:
"""
return OrderedDict([
('_enabled',
forms.ChoiceField(
forms.BooleanField(
label=_('Enable payment method'),
required=False,
choices=SettingsForm.BOOL_CHOICES,
)),
('_fee_abs',
forms.DecimalField(

View File

@@ -86,10 +86,9 @@ class BaseTicketOutput:
"""
return OrderedDict([
('_enabled',
forms.ChoiceField(
forms.BooleanField(
label=_('Enable output'),
required=False,
choices=SettingsForm.BOOL_CHOICES,
)),
])