diff options
author | ankitjavalkar | 2017-07-21 17:07:24 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-08-24 14:55:40 +0530 |
commit | ceb55baf69c2f5f7346855ee5a6e5e9f77456fcb (patch) | |
tree | 30caec50cdbbedca1907f2efa006b0850ef960ea /yaksh/models.py | |
parent | b18d7303e15d747229734eff8c1f1bd6d550efd2 (diff) | |
download | online_test-ceb55baf69c2f5f7346855ee5a6e5e9f77456fcb.tar.gz online_test-ceb55baf69c2f5f7346855ee5a6e5e9f77456fcb.tar.bz2 online_test-ceb55baf69c2f5f7346855ee5a6e5e9f77456fcb.zip |
Add a has_profile decorator
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 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 |