-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from pretix/master
Django 3.0 Updates
- Loading branch information
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from pretix.base.signals import register_payment_providers | ||
from django.dispatch import receiver | ||
from pretix.base.settings import settings_hierarkey | ||
from django.utils.translation import ugettext_lazy as _, ugettext_noop | ||
from django.utils.translation import gettext_lazy as _, gettext_noop | ||
from i18nfield.strings import LazyI18nString | ||
|
||
@receiver(register_payment_providers, dispatch_uid="payment_cash") | ||
def register_payment_provider(sender, **kwargs): | ||
from .payment import CashPayment | ||
return CashPayment | ||
|
||
settings_hierarkey.add_default('payment_cashpayment_information_text', LazyI18nString.from_gettext(ugettext_noop( | ||
settings_hierarkey.add_default('payment_cashpayment_information_text', LazyI18nString.from_gettext(gettext_noop( | ||
"You can pay your order by cash at the venue." | ||
)), LazyI18nString) |