summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-08-24 19:55:26 +0530
committerGitHub2017-08-24 19:55:25 +0530
commit9d5c4a01fd7856f1ef8793b75a9734324c254344 (patch)
treee54640073944ea6e69eabf165f3ac5964efbddcd /yaksh/models.py
parentb18d7303e15d747229734eff8c1f1bd6d550efd2 (diff)
parent281e28819d4ab62cc01722d90dd4951e417e16cb (diff)
downloadonline_test-9d5c4a01fd7856f1ef8793b75a9734324c254344.tar.gz
online_test-9d5c4a01fd7856f1ef8793b75a9734324c254344.tar.bz2
online_test-9d5c4a01fd7856f1ef8793b75a9734324c254344.zip
Merge pull request #305 from ankitjavalkar/has-profile-fix
Add a has_profile decorator
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 87e6260..30ecde0 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -92,11 +92,6 @@ def get_model_class(model):
return model_class
-def has_profile(user):
- """ check if user has profile """
- return True if hasattr(user, 'profile') else False
-
-
def get_upload_dir(instance, filename):
return os.sep.join((
'question_%s' % (instance.question.id), filename