Upgrade to Django 3.2 (#2056)

This commit is contained in:
Raphael Michel
2021-05-07 12:00:30 +02:00
committed by GitHub
parent 0a7a3537eb
commit 403b8191e4
120 changed files with 1994 additions and 1555 deletions

View File

@@ -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'