diff options
author | ankitjavalkar | 2019-02-18 16:40:16 +0530 |
---|---|---|
committer | GitHub | 2019-02-18 16:40:16 +0530 |
commit | b71b517173cac8b4f266f36d0cbc918551b3ee73 (patch) | |
tree | f020ee332db3996d88d67bdab1cefddbcd82acf8 /yaksh/models.py | |
parent | 01c476c535611c671c8b17ad1cb2e8f2b41a4378 (diff) | |
parent | 37ee0c9de91cac5bdb6275e12d35cb6b7697a7fb (diff) | |
download | online_test-b71b517173cac8b4f266f36d0cbc918551b3ee73.tar.gz online_test-b71b517173cac8b4f266f36d0cbc918551b3ee73.tar.bz2 online_test-b71b517173cac8b4f266f36d0cbc918551b3ee73.zip |
Merge pull request #575 from CruiseDevice/file_download_issue_in_quiz
Fix download file for a question in quiz
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index cce90e7..7b80306 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -1408,6 +1408,9 @@ class FileUpload(models.Model): self.hide = True self.save() + def get_filename(self): + return os.path.basename(self.file.name) + ############################################################################### class Answer(models.Model): |