usluga przedmiot
This commit is contained in:
parent
d16b474e4e
commit
7c2e807d36
Binary file not shown.
@ -134,19 +134,19 @@ def filter(request):
|
||||
|
||||
if oddam_local == "on" and potrzebuje_local != "on":
|
||||
zmienna = 2
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(type=2)
|
||||
|
||||
if oddam_local != "on" and potrzebuje_local == "on":
|
||||
zmienna = 1
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(type=1)
|
||||
|
||||
if usluga_local == "on" and przedmiot_local != "on":
|
||||
zmienna = 1
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(offer=1)
|
||||
|
||||
if usluga_local != "on" and przedmiot_local == "on":
|
||||
zmienna = 2
|
||||
all_product = all_product.filter(type=zmienna)
|
||||
all_product = all_product.filter(offer=2)
|
||||
|
||||
if wol_local == "on":
|
||||
all_product = all_product.filter(Wolontatriat=True)
|
||||
|
Loading…
Reference in New Issue
Block a user