From 3dbbdf60c4ba63c1e381bab025cfb636f5c814b1 Mon Sep 17 00:00:00 2001 From: amandine-sahl Date: Fri, 10 Nov 2023 09:03:10 +0100 Subject: [PATCH] Remove distinct --- apptax/taxonomie/routestaxref.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/apptax/taxonomie/routestaxref.py b/apptax/taxonomie/routestaxref.py index 21780fec..09935f98 100644 --- a/apptax/taxonomie/routestaxref.py +++ b/apptax/taxonomie/routestaxref.py @@ -485,9 +485,6 @@ def get_names(): fields_to_filter = None if fields: fields_to_filter = [f for f in fields if getattr(Taxref, f, None)] - # Ajout disctinct pour ne pas avoir de doublons - for field in [getattr(Taxref, f, None) for f in fields if getattr(Taxref, f, None)]: - q = q.distinct(field) results = q.paginate(page=page, per_page=limit, error_out=False) items = []