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)
|
||||
@ -519,7 +519,7 @@ def offer(request, offer_id):
|
||||
user_list = chat.objects.values_list('author_id', flat=True).distinct('author_id').filter(product_id = offer_id, sec_user_id = request.user.id).exclude(author_id = request.user.id)
|
||||
User = get_user_model()
|
||||
email_list = User.objects.filter(id__in = user_list)
|
||||
else:
|
||||
else:
|
||||
user_list = chat.objects.none()
|
||||
email_list = chat.objects.none()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user