This commit is contained in:
Jędrzej Klepacki 2021-01-02 11:38:07 +01:00
parent 49d1a18d64
commit 3e7517d406
5 changed files with 3 additions and 3 deletions

View File

@ -77,7 +77,7 @@ WSGI_APPLICATION = 'SocialHelper.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'postgres',
'NAME': 'socialhelperdb',
'USER': 'postgres',
'PASSWORD': 'admin',
'HOST': 'localhost'

View File

@ -123,7 +123,7 @@ def filter(request):
potrzebuje_local = request.POST['Potrzebuje']
usluga_local = request.POST['usluga']
przedmiot_local = request.POST['przedmiot']
if place_local != "":
all_product = all_product.filter(place=place_local)
@ -142,7 +142,7 @@ def filter(request):
if usluga_local != "on" and przedmiot_local == "on":
zmienna = 2
all_product = all_product.filter(type=zmienna)z
all_product = all_product.filter(type=zmienna)
types = TYPE_T