forked from github/pretix-servicefees
Add form field label
This commit is contained in:
parent
23de62fbc2
commit
d218a875c8
1 changed files with 2 additions and 1 deletions
|
@ -1,12 +1,13 @@
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from pretix.base.forms import SettingsForm
|
from pretix.base.forms import SettingsForm
|
||||||
from pretix.base.models import Event
|
from pretix.base.models import Event
|
||||||
from pretix.control.views.event import EventSettingsViewMixin, EventSettingsFormView
|
from pretix.control.views.event import EventSettingsViewMixin, EventSettingsFormView
|
||||||
|
|
||||||
class ServiceFeeSettingsForm(SettingsForm):
|
class ServiceFeeSettingsForm(SettingsForm):
|
||||||
service_fee_abs = forms.DecimalField()
|
service_fee_abs = forms.DecimalField(label=_('Service fee'))
|
||||||
|
|
||||||
|
|
||||||
class SettingsView(EventSettingsViewMixin, EventSettingsFormView):
|
class SettingsView(EventSettingsViewMixin, EventSettingsFormView):
|
||||||
|
|
Loading…
Reference in a new issue