Django's new URLconfig style allows us to no longer ignore PEP8s error

E128
This commit is contained in:
Raphael Michel
2015-03-13 00:07:14 +01:00
parent 97f5e4a2f1
commit 25fff77be5
3 changed files with 5 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ class CartDisplayMixin:
# Django is unable to join related models in a .values() query
def keyfunc(pos):
if answers and ((pos.item.admission and self.request.event.settings.attendee_names_asked == 'True')
or pos.item.questions.all()):
or pos.item.questions.all()):
return pos.id, "", "", ""
return "", pos.item_id, pos.variation_id, pos.price