8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-27 01:13:46 +00:00

Evite les doublons dans la requete SQL

This commit is contained in:
Maël Kervella 2017-09-15 00:44:50 +00:00 committed by Pierre Cadart
parent 6c0ec3ad64
commit fab9854d8b

View file

@ -705,7 +705,7 @@ class JSONResponse(HttpResponse):
@login_required
@permission_required('serveur')
def mailing(request):
mails = all_has_access()
mails = all_has_access().values('email').distinct()
seria = MailSerializer(mails, many=True)
return JSONResponse(seria.data)