usluga przedmiot

This commit is contained in:
Jędrzej Klepacki 2021-01-09 19:36:38 +01:00
parent d16b474e4e
commit 7c2e807d36
2 changed files with 5 additions and 5 deletions

View File

@ -134,19 +134,19 @@ def filter(request):
if oddam_local == "on" and potrzebuje_local != "on": if oddam_local == "on" and potrzebuje_local != "on":
zmienna = 2 zmienna = 2
all_product = all_product.filter(type=zmienna) all_product = all_product.filter(type=2)
if oddam_local != "on" and potrzebuje_local == "on": if oddam_local != "on" and potrzebuje_local == "on":
zmienna = 1 zmienna = 1
all_product = all_product.filter(type=zmienna) all_product = all_product.filter(type=1)
if usluga_local == "on" and przedmiot_local != "on": if usluga_local == "on" and przedmiot_local != "on":
zmienna = 1 zmienna = 1
all_product = all_product.filter(type=zmienna) all_product = all_product.filter(offer=1)
if usluga_local != "on" and przedmiot_local == "on": if usluga_local != "on" and przedmiot_local == "on":
zmienna = 2 zmienna = 2
all_product = all_product.filter(type=zmienna) all_product = all_product.filter(offer=2)
if wol_local == "on": if wol_local == "on":
all_product = all_product.filter(Wolontatriat=True) all_product = all_product.filter(Wolontatriat=True)