forked from CGM_Public/pretix_original
Resolve flake8 warnings
This commit is contained in:
@@ -22,7 +22,7 @@ class TicketOutputPdfApp(AppConfig):
|
||||
def compatibility_errors(self):
|
||||
errs = []
|
||||
try:
|
||||
import reportlab
|
||||
import reportlab # NOQA
|
||||
except ImportError:
|
||||
errs.append("Python package 'reportlab' is not installed.")
|
||||
return errs
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
from io import BytesIO
|
||||
import logging
|
||||
from django.contrib import messages
|
||||
|
||||
from django.contrib.staticfiles import finders
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import redirect
|
||||
from django.utils.timezone import now
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from pretix.base.models import Order
|
||||
|
||||
from pretix.base.ticketoutput import BaseTicketOutput
|
||||
|
||||
|
||||
@@ -15,7 +11,6 @@ logger = logging.getLogger('pretix.plugins.ticketoutputpdf')
|
||||
|
||||
|
||||
class PdfTicketOutput(BaseTicketOutput):
|
||||
|
||||
identifier = 'pdf'
|
||||
verbose_name = _('PDF output')
|
||||
download_button_text = _('Download PDF')
|
||||
|
||||
Reference in New Issue
Block a user