Commit f9e9405b authored by VAN ZUIJLEN Nils's avatar VAN ZUIJLEN Nils

Merge branch 'fix/delivery_search_filters' into 'master'

filtres livraison boutique

See merge request !62
parents 818438a9 7ee72eea
......@@ -561,9 +561,9 @@ class DeliveryView(PermissionRequiredMixin, ListView):
elif paid is False:
itemList = itemList.filter(Q(order__payment__isnull=True) | Q(order__payment__paid=False))
itemList = itemList.filter(Q(item__name__icontains=request.GET["productContains"])
& Q(customization__icontains=request.GET["customizationContains"])
& Q(order__user__email__icontains=request.GET["emailContains"]))
itemList = itemList.filter(Q(item__name__icontains=request.GET["productContains"])
& Q(customization__icontains=request.GET["customizationContains"])
& Q(order__user__email__icontains=request.GET["emailContains"]))
optionContains = request.GET["optionContains"]
if optionContains != "":
......
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