Resolve flake8 style warnings (mostly unused imports)

This commit is contained in:
Raphael Michel
2015-03-13 00:09:14 +01:00
parent 25fff77be5
commit 7c240e5c35
7 changed files with 7 additions and 10 deletions

View File

@@ -1,4 +1,3 @@
import uuid
from itertools import groupby
from datetime import timedelta
from django.contrib.auth.views import redirect_to_login

View File

@@ -7,7 +7,7 @@ from django import forms
from django.shortcuts import redirect
from django.utils.functional import cached_property
from django.utils.timezone import now
from django.views.generic import View, TemplateView
from django.views.generic import TemplateView
from django.utils.translation import ugettext_lazy as _
from pretix.base.models import CartPosition, Question, QuestionAnswer, Quota, Order, OrderPosition
from pretix.base.signals import register_payment_providers

View File

@@ -19,7 +19,7 @@ class OrderDetailMixin:
user=self.request.user,
event=self.request.event,
code=self.kwargs['order'],
)
)
except Order.DoesNotExist:
return None