diff options
author | mahesh | 2017-08-24 23:26:46 +0530 |
---|---|---|
committer | mahesh | 2017-08-24 23:26:46 +0530 |
commit | 751dc83729e5bf57b2dd1a2798bb7b527a2e3584 (patch) | |
tree | fa1d11bd00ac9060cfa36056f62d1321455a4916 /yaksh/models.py | |
parent | 6ab383c02085936ecc20ffeb4b9f41ca642256c3 (diff) | |
parent | 9d5c4a01fd7856f1ef8793b75a9734324c254344 (diff) | |
download | online_test-751dc83729e5bf57b2dd1a2798bb7b527a2e3584.tar.gz online_test-751dc83729e5bf57b2dd1a2798bb7b527a2e3584.tar.bz2 online_test-751dc83729e5bf57b2dd1a2798bb7b527a2e3584.zip |
Merge branch 'master' of https://github.com/fossee/online_test into yaml_questions
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index b4c665c..d9218ef 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -96,11 +96,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 |