forked from DGNum/gestioCOF
PEP8 does not like \
This commit is contained in:
parent
8a1af73ee0
commit
67b4421933
1 changed files with 13 additions and 9 deletions
22
bda/views.py
22
bda/views.py
|
@ -15,19 +15,24 @@ from django.db import models, transaction
|
|||
from django.core import serializers
|
||||
from django.db.models import Count, Q, Sum
|
||||
from django.forms.models import inlineformset_factory
|
||||
from django.http import HttpResponseBadRequest, HttpResponseRedirect,\
|
||||
JsonResponse
|
||||
from django.http import (
|
||||
HttpResponseBadRequest, HttpResponseRedirect, JsonResponse
|
||||
)
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.conf import settings
|
||||
from django.utils import timezone, formats
|
||||
from django.views.generic.list import ListView
|
||||
|
||||
from gestioncof.decorators import cof_required, buro_required
|
||||
from bda.models import Spectacle, Participant, ChoixSpectacle, Attribution,\
|
||||
Tirage, SpectacleRevente, Salle, Quote, CategorieSpectacle
|
||||
from bda.models import (
|
||||
Spectacle, Participant, ChoixSpectacle, Attribution, Tirage,
|
||||
SpectacleRevente, Salle, Quote, CategorieSpectacle
|
||||
)
|
||||
from bda.algorithm import Algorithm
|
||||
from bda.forms import BaseBdaFormSet, TokenForm, ResellForm, AnnulForm,\
|
||||
InscriptionReventeForm, SoldForm
|
||||
from bda.forms import (
|
||||
BaseBdaFormSet, TokenForm, ResellForm, AnnulForm, InscriptionReventeForm,
|
||||
SoldForm
|
||||
)
|
||||
|
||||
|
||||
@cof_required
|
||||
|
@ -690,9 +695,8 @@ def catalogue(request, request_type):
|
|||
location__id__in=location_id)
|
||||
except ValueError:
|
||||
return HttpResponseBadRequest(
|
||||
"Impossible de trouver des résultats correspondant \
|
||||
à ces caractéristiques")
|
||||
|
||||
"Impossible de trouver des résultats correspondant "
|
||||
"à ces caractéristiques")
|
||||
|
||||
# On convertit les descriptions à envoyer en une liste facilement
|
||||
# JSONifiable (il devrait y avoir un moyen plus efficace en
|
||||
|
|
Loading…
Reference in a new issue