Commit e5b08093 authored by Amap's avatar Amap

Repare recherche

parent f3d497b9
......@@ -21,7 +21,8 @@ def form(ctx, template, request):
def search_result(search, type, request):
date_deb = None
date_fin = None
date_fin = None
date_livraison = None
states=[]
co=[]
aff=[]
......@@ -60,7 +61,7 @@ def search_result(search, type, request):
if i == '1':
panier = Panier.objects.filter(nom__icontains = search)
if i == '2':
commande = Commande.objects.filter(date=Livraison.objects.filter(date_query))
commande = Commande.objects.filter(Q(date=Livraison.objects.filter(date_query)) & query)
if not request.user.has_perms(('bureau',)):
commande = commande.filter(user=request.user)
if i == '3':
......
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