forked from CGM_Public/pretix_original
Upgrade to Django 3.2 (#2056)
This commit is contained in:
@@ -19,38 +19,3 @@
|
||||
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
|
||||
# <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
from django.apps import AppConfig
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from pretix import __version__ as version
|
||||
|
||||
|
||||
class BankTransferApp(AppConfig):
|
||||
name = 'pretix.plugins.banktransfer'
|
||||
verbose_name = _("Bank transfer")
|
||||
|
||||
class PretixPluginMeta:
|
||||
name = _("Bank transfer")
|
||||
author = _("the pretix team")
|
||||
category = 'PAYMENT'
|
||||
version = version
|
||||
description = _("This plugin allows you to receive payments " +
|
||||
"via bank transfer.")
|
||||
|
||||
def ready(self):
|
||||
from . import signals # NOQA
|
||||
from . import tasks # NOQA
|
||||
from .templatetags import commadecimal, dotdecimal # NOQA
|
||||
|
||||
@cached_property
|
||||
def compatibility_warnings(self):
|
||||
errs = []
|
||||
try:
|
||||
import chardet # NOQA
|
||||
except ImportError:
|
||||
errs.append(_("Install the python package 'chardet' for better CSV import capabilities."))
|
||||
return errs
|
||||
|
||||
|
||||
default_app_config = 'pretix.plugins.banktransfer.BankTransferApp'
|
||||
|
||||
Reference in New Issue
Block a user