diff options
author | dk-15 | 2017-06-15 19:00:54 +0530 |
---|---|---|
committer | dk-15 | 2017-06-15 19:02:21 +0530 |
commit | cf83d814f61486a3ca3e1b9b73597b2e4fc124b7 (patch) | |
tree | 39d6888d93043faca287098a6b24fdd9d340a5d3 /sbhs_server/tables | |
parent | eafb39a96d85cd97429532fc7de9bff304618a59 (diff) | |
download | SBHS-2018-Rpi-cf83d814f61486a3ca3e1b9b73597b2e4fc124b7.tar.gz SBHS-2018-Rpi-cf83d814f61486a3ca3e1b9b73597b2e4fc124b7.tar.bz2 SBHS-2018-Rpi-cf83d814f61486a3ca3e1b9b73597b2e4fc124b7.zip |
Update confirmation mail link to work with apache
Diffstat (limited to 'sbhs_server/tables')
-rw-r--r-- | sbhs_server/tables/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbhs_server/tables/models.py b/sbhs_server/tables/models.py index 8c720b5..0010d2d 100644 --- a/sbhs_server/tables/models.py +++ b/sbhs_server/tables/models.py @@ -45,7 +45,7 @@ class Board(TrashableMixin): for o in online_boards: if o > last_allocated_MID: return Board.objects.get(mid=o).id - except ObjectDoesNotExist: + except Exception as e: pass # check if there is at least one online board @@ -83,7 +83,7 @@ class Account(TrashableMixin, AbstractBaseUser): return self.name def send_confirmation(self): - message = """Hi,\n\nPlease visit the link """ + settings.BASE_URL + """account/confirm/""" + message = """Hi,\n\nPlease visit the link """ + settings.BASE_URL + """sbhs/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) |