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