Reformat code in 79 columns
This commit is contained in:
parent
95b96d470f
commit
8a346bf834
1 changed files with 9 additions and 5 deletions
12
cof/views.py
12
cof/views.py
|
@ -475,7 +475,8 @@ def export_members(request):
|
||||||
response['Content-Disposition'] = 'attachment; filename=membres_cof.csv'
|
response['Content-Disposition'] = 'attachment; filename=membres_cof.csv'
|
||||||
|
|
||||||
writer = unicodecsv.writer(response)
|
writer = unicodecsv.writer(response)
|
||||||
for profile in CofProfile.objects.filter(profile__user__groups__name='cof_members').all():
|
for profile in CofProfile.objects.filter(
|
||||||
|
profile__user__groups__name='cof_members').all():
|
||||||
user = profile.user
|
user = profile.user
|
||||||
bits = [profile.num, user.username, user.first_name, user.last_name,
|
bits = [profile.num, user.username, user.first_name, user.last_name,
|
||||||
user.email, profile.phone, profile.occupation,
|
user.email, profile.phone, profile.occupation,
|
||||||
|
@ -584,7 +585,8 @@ def utile_bda(request):
|
||||||
@buro_required
|
@buro_required
|
||||||
def liste_bdadiff(request):
|
def liste_bdadiff(request):
|
||||||
titre = "BdA diffusion"
|
titre = "BdA diffusion"
|
||||||
personnes = CofProfile.objects.filter(mailing_bda=True, profile__user__groups__name='cof_members').all()
|
personnes = CofProfile.objects.filter(
|
||||||
|
mailing_bda=True, profile__user__groups__name='cof_members').all()
|
||||||
return render(request, "liste_mails.html",
|
return render(request, "liste_mails.html",
|
||||||
{"titre": titre, "personnes": personnes})
|
{"titre": titre, "personnes": personnes})
|
||||||
|
|
||||||
|
@ -592,7 +594,8 @@ def liste_bdadiff(request):
|
||||||
@buro_required
|
@buro_required
|
||||||
def liste_bdarevente(request):
|
def liste_bdarevente(request):
|
||||||
titre = "BdA revente"
|
titre = "BdA revente"
|
||||||
personnes = CofProfile.objects.filter(mailing_bda_revente=True,
|
personnes = CofProfile.objects.filter(
|
||||||
|
mailing_bda_revente=True,
|
||||||
profile__user__groups__name='cof_members').all()
|
profile__user__groups__name='cof_members').all()
|
||||||
return render(request, "liste_mails.html", {"titre": titre,
|
return render(request, "liste_mails.html", {"titre": titre,
|
||||||
"personnes": personnes})
|
"personnes": personnes})
|
||||||
|
@ -601,7 +604,8 @@ def liste_bdarevente(request):
|
||||||
@buro_required
|
@buro_required
|
||||||
def liste_diffcof(request):
|
def liste_diffcof(request):
|
||||||
titre = "Diffusion COF"
|
titre = "Diffusion COF"
|
||||||
personnes = CofProfile.objects.filter(mailing_cof=True, user__groups__name='cof_members').all()
|
personnes = CofProfile.objects.filter(
|
||||||
|
mailing_cof=True, user__groups__name='cof_members').all()
|
||||||
return render(request, "liste_mails.html", {"titre": titre,
|
return render(request, "liste_mails.html", {"titre": titre,
|
||||||
"personnes": personnes})
|
"personnes": personnes})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue