Use consistent flake8 settings everywhere and fix flake8 issues

This commit is contained in:
Raphael Michel
2016-10-13 22:56:31 +02:00
parent fa0803aa68
commit 503f6dd06f
24 changed files with 25 additions and 33 deletions

View File

@@ -12,7 +12,7 @@ from django.shortcuts import get_object_or_404, redirect, render
from django.utils.functional import cached_property
from django.utils.timezone import now
from django.utils.translation import ugettext as _
from django.views.generic import DetailView, ListView, TemplateView, View
from django.views.generic import DetailView, ListView, View
from pretix.base.models import Order, Quota
from pretix.base.services.mail import SendMailException
@@ -283,7 +283,7 @@ class ImportView(EventPermissionRequiredMixin, ListView):
[
self.request.POST.get('col[%d][%d]' % (i, j))
for j in range(int(self.request.POST.get('cols')))
]
]
)
if 'reference' not in self.request.POST:
messages.error(self.request, _('You need to select the column containing the payment reference.'))