From a8e670c9964f42311d921c7ccd1ee03ff638a084 Mon Sep 17 00:00:00 2001 From: Hokan Date: Wed, 30 Jan 2019 20:58:03 +0100 Subject: [PATCH] fix sprawdzania dat --- .../hotel/__pycache__/settings.cpython-35.pyc | Bin 2364 -> 2362 bytes hotel/hotel/settings.py | 10 +++++++--- hotel/rooms/__pycache__/forms.cpython-35.pyc | Bin 757 -> 1032 bytes hotel/rooms/__pycache__/views.cpython-35.pyc | Bin 2668 -> 2656 bytes hotel/rooms/forms.py | 7 +++++++ hotel/rooms/templates/index.html | 17 ++++++++--------- 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/hotel/hotel/__pycache__/settings.cpython-35.pyc b/hotel/hotel/__pycache__/settings.cpython-35.pyc index f66667c43aa518e50b6470ff1a99df4ef9fef04b..3f7dbaceecd8490e09c394afa8e83fa7e9610e1b 100644 GIT binary patch delta 86 zcmdlZv`dInjF*?|(9gga-Hn`fjIvq`Q6dZ}KvI+;g@qwXj3GsvAxfMfg^3|pQ)hDu pBPSczEvAB;DCW=*XSdCj>~f533JeSkMGBMWa`-T^PJYD^1OQwq6XyT` delta 88 zcmdlbv`2_jjF*?|nwNEq)<#Y{Mp+hyC=rGfASnta#TZhw7^1`(QkWQmHMKXVFmkf- nRI#S!>6R8pF^7gYZ!Tw-V`P(OU|=YcpFEqxhmm>m3yvTFHBJ*o diff --git a/hotel/hotel/settings.py b/hotel/hotel/settings.py index ad7d397..3650f1c 100644 --- a/hotel/hotel/settings.py +++ b/hotel/hotel/settings.py @@ -12,6 +12,8 @@ https://docs.djangoproject.com/en/2.1/ref/settings/ import os + + # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) @@ -104,13 +106,13 @@ AUTH_PASSWORD_VALIDATORS = [ # Internationalization # https://docs.djangoproject.com/en/2.1/topics/i18n/ -LANGUAGE_CODE = 'en-us' +LANGUAGE_CODE = 'pl' TIME_ZONE = 'UTC' -USE_I18N = True +USE_I18N = False -USE_L10N = True +USE_L10N = False USE_TZ = True @@ -119,3 +121,5 @@ USE_TZ = True # https://docs.djangoproject.com/en/2.1/howto/static-files/ STATIC_URL = '/static/' + + diff --git a/hotel/rooms/__pycache__/forms.cpython-35.pyc b/hotel/rooms/__pycache__/forms.cpython-35.pyc index 596beb80141a53d5febaffa7c6caa66bf8d2b1d5..d3e4ce7b234b97b154b3ef2cfe7bccc4fe55c3a1 100644 GIT binary patch delta 404 zcmXv~%}T>S5T4y^LX4@3^`|`uMevY|7wHoS9t9OVh_IAqQ&Q7bXH&!y=s{3VLh%87 z1o3HveGd=boQZYV`DXWR1XK%1vmE`6X900?iW34sjf+NxW&*S*d(`#07P5N ynwQ5#ZpP)w1V@Meof02cDUUHjgMmM!uKp8a#YEs9v$Zf!%3ce{vKhTq^5GYp9#ugA delta 127 zcmeC+_{z#9#>>k!{hd!t3gbks`D_jh3=GA}6W1%Tr7$xDYqD&78N?XO4ie-75nCQA`FkS^i@5xgJ*BwQqnN{E2CY(N5pi enddate.getDate()){ + if (begindate.getTime() > enddate.getTime()){ alert('Data końcowa jest przed początkową'); return false; }