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

@@ -1,7 +1,6 @@
import json
from collections import OrderedDict
from django import forms
from django.template.loader import get_template
from django.utils.translation import ugettext_lazy as _

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.'))

View File

@@ -6,7 +6,7 @@ from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_POST
from pretix.base.models import Event, Order
from pretix.base.models import Order
from pretix.base.services.orders import mark_order_refunded
from pretix.plugins.stripe.payment import Stripe
from pretix.presale.utils import event_view