Commit fab9854d authored by Maël Kervella's avatar Maël Kervella Committed by Pierre Cadart

Evite les doublons dans la requete SQL

parent 6c0ec3ad
...@@ -705,7 +705,7 @@ class JSONResponse(HttpResponse): ...@@ -705,7 +705,7 @@ class JSONResponse(HttpResponse):
@login_required @login_required
@permission_required('serveur') @permission_required('serveur')
def mailing(request): def mailing(request):
mails = all_has_access() mails = all_has_access().values('email').distinct()
seria = MailSerializer(mails, many=True) seria = MailSerializer(mails, many=True)
return JSONResponse(seria.data) return JSONResponse(seria.data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment