summaryrefslogtreecommitdiff
path: root/yaksh/decorators.py
diff options
context:
space:
mode:
authoradityacp2020-03-05 10:46:31 +0530
committeradityacp2020-03-05 10:46:31 +0530
commit5f0a5f7429ff74cccdc772fd45e0e5d3ee49891d (patch)
tree80cdebf0769550aeafb21fbee19f87ce50abcca7 /yaksh/decorators.py
parent674c81d9e1d3499e255e8995701fb65d1358a0ac (diff)
downloadonline_test-5f0a5f7429ff74cccdc772fd45e0e5d3ee49891d.tar.gz
online_test-5f0a5f7429ff74cccdc772fd45e0e5d3ee49891d.tar.bz2
online_test-5f0a5f7429ff74cccdc772fd45e0e5d3ee49891d.zip
Change in decorators, tests, travis
- Remove python 2.7 from travis - Fix url reverse function import in views tests - Fix error in is_email_verified decorator for user is_authenticated
Diffstat (limited to 'yaksh/decorators.py')
-rw-r--r--yaksh/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/decorators.py b/yaksh/decorators.py
index 81912f0..d584868 100644
--- a/yaksh/decorators.py
+++ b/yaksh/decorators.py
@@ -40,7 +40,7 @@ def email_verified(func):
user = request.user
context = {}
if not settings.IS_DEVELOPMENT:
- if user.is_authenticated() and user_has_profile(user):
+ if user.is_authenticated and user_has_profile(user):
if not user.profile.is_email_verified:
context['success'] = False
context['msg'] = "Your account is not verified. \