PEP8 does not like \

This commit is contained in:
Martin Pépin 2017-03-31 17:54:31 +01:00
parent 8a1af73ee0
commit 67b4421933

View file

@ -15,19 +15,24 @@ from django.db import models, transaction
from django.core import serializers from django.core import serializers
from django.db.models import Count, Q, Sum from django.db.models import Count, Q, Sum
from django.forms.models import inlineformset_factory from django.forms.models import inlineformset_factory
from django.http import HttpResponseBadRequest, HttpResponseRedirect,\ from django.http import (
JsonResponse HttpResponseBadRequest, HttpResponseRedirect, JsonResponse
)
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
from django.conf import settings from django.conf import settings
from django.utils import timezone, formats from django.utils import timezone, formats
from django.views.generic.list import ListView from django.views.generic.list import ListView
from gestioncof.decorators import cof_required, buro_required from gestioncof.decorators import cof_required, buro_required
from bda.models import Spectacle, Participant, ChoixSpectacle, Attribution,\ from bda.models import (
Tirage, SpectacleRevente, Salle, Quote, CategorieSpectacle Spectacle, Participant, ChoixSpectacle, Attribution, Tirage,
SpectacleRevente, Salle, Quote, CategorieSpectacle
)
from bda.algorithm import Algorithm from bda.algorithm import Algorithm
from bda.forms import BaseBdaFormSet, TokenForm, ResellForm, AnnulForm,\ from bda.forms import (
InscriptionReventeForm, SoldForm BaseBdaFormSet, TokenForm, ResellForm, AnnulForm, InscriptionReventeForm,
SoldForm
)
@cof_required @cof_required
@ -690,9 +695,8 @@ def catalogue(request, request_type):
location__id__in=location_id) location__id__in=location_id)
except ValueError: except ValueError:
return HttpResponseBadRequest( return HttpResponseBadRequest(
"Impossible de trouver des résultats correspondant \ "Impossible de trouver des résultats correspondant "
à ces caractéristiques") "à ces caractéristiques")
# On convertit les descriptions à envoyer en une liste facilement # On convertit les descriptions à envoyer en une liste facilement
# JSONifiable (il devrait y avoir un moyen plus efficace en # JSONifiable (il devrait y avoir un moyen plus efficace en