diff --git a/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc b/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc index 66f78c3..0ebf979 100644 Binary files a/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc and b/SocialHelper/SocialHelper/__pycache__/settings.cpython-37.pyc differ diff --git a/SocialHelper/SocialHelper/settings.py b/SocialHelper/SocialHelper/settings.py index 62c0d53..70f48eb 100644 --- a/SocialHelper/SocialHelper/settings.py +++ b/SocialHelper/SocialHelper/settings.py @@ -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' diff --git a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc index 84fc2c9..d0aa2f6 100644 Binary files a/SocialHelper/homepage/__pycache__/views.cpython-37.pyc and b/SocialHelper/homepage/__pycache__/views.cpython-37.pyc differ diff --git a/SocialHelper/homepage/migrations/__pycache__/0002_product_wolontatriat.cpython-37.pyc b/SocialHelper/homepage/migrations/__pycache__/0002_product_wolontatriat.cpython-37.pyc index e04abaa..9c3eb32 100644 Binary files a/SocialHelper/homepage/migrations/__pycache__/0002_product_wolontatriat.cpython-37.pyc and b/SocialHelper/homepage/migrations/__pycache__/0002_product_wolontatriat.cpython-37.pyc differ diff --git a/SocialHelper/homepage/views.py b/SocialHelper/homepage/views.py index 934cd59..1734d97 100644 --- a/SocialHelper/homepage/views.py +++ b/SocialHelper/homepage/views.py @@ -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