From f67527fe88cd33cb1b031a05e5743f1d174b68fe Mon Sep 17 00:00:00 2001 From: coderick14 Date: Sun, 25 Jun 2017 19:46:03 +0530 Subject: Fix typographical errors during documentation --- account/views.py | 2 +- sbhs_server/tables/models.py | 3 +-- 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 -- cgit