summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoderick142017-06-25 19:46:03 +0530
committercoderick142017-06-25 19:46:03 +0530
commitf67527fe88cd33cb1b031a05e5743f1d174b68fe (patch)
treecc87a6a0e37a2f34bea062ee3dadc99d01b8089a
parent294d54dac2b8715891ac32d9b93b3bfd885827f6 (diff)
downloadSBHS-2018-Rpi-f67527fe88cd33cb1b031a05e5743f1d174b68fe.tar.gz
SBHS-2018-Rpi-f67527fe88cd33cb1b031a05e5743f1d174b68fe.tar.bz2
SBHS-2018-Rpi-f67527fe88cd33cb1b031a05e5743f1d174b68fe.zip
Fix typographical errors during documentation
-rw-r--r--account/views.py2
-rw-r--r--sbhs_server/tables/models.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/account/views.py b/account/views.py
index 4348842..51e73ff 100644
--- a/account/views.py
+++ b/account/views.py
@@ -135,7 +135,7 @@ def login(req):
messages.add_message(req, messages.ERROR, "Invalid username or password.")
return redirect(index)
- is_authenticated = user.check_password(password)+
+ is_authenticated = user.check_password(password)
if is_authenticated:
if user.is_active:
diff --git a/sbhs_server/tables/models.py b/sbhs_server/tables/models.py
index 7ab7966..7500c68 100644
--- a/sbhs_server/tables/models.py
+++ b/sbhs_server/tables/models.py
@@ -98,7 +98,7 @@ class Account(TrashableMixin, AbstractBaseUser):
""" Function to show message to the user to confirm their account by visiting the link sent
to their e-mail.
"""
- message = """Hi,\n\nPlease visit the link """ + settings.BASE_URL + """sbhs/account/confirm/"""
+ message = """Hi,\n\nPlease visit the link """ + settings.BASE_URL + """account/confirm/"""
message = message + self.confirmation_token()
message = message + """ to confirm your account.\n\n\nRegards,\nVlabs Team"""
mailer.email(self.email, "Please confirm your account", message)
@@ -139,7 +139,6 @@ class Slot(TrashableMixin):
@staticmethod
def indices(self, other):
- These lines are irrelevant due to booking date scheme
""" now = datetime.datetime.now()
cur_hour = now.hour