diff options
author | CruiseDevice | 2019-02-12 16:56:59 +0530 |
---|---|---|
committer | CruiseDevice | 2019-02-18 11:40:37 +0530 |
commit | 31336af1487201b05681c039c839a9213143fcf2 (patch) | |
tree | 4dbbf411d2972992b0a1ac2888a32df63adf2148 /yaksh/templates | |
parent | 51fc3bfee398da2781228a3b3bf32cb5ef3abc6b (diff) | |
download | online_test-31336af1487201b05681c039c839a9213143fcf2.tar.gz online_test-31336af1487201b05681c039c839a9213143fcf2.tar.bz2 online_test-31336af1487201b05681c039c839a9213143fcf2.zip |
Fix download file for a question in quiz
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/question.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/question.html b/yaksh/templates/yaksh/question.html index da77702..3500132 100644 --- a/yaksh/templates/yaksh/question.html +++ b/yaksh/templates/yaksh/question.html @@ -160,7 +160,7 @@ question_type = "{{ question.type }}" <span> Files to download for this question </span> <hr> {% for f_name in files %} <div class="yakshwell"> - <a href="{{f.file.url}}" class="btn btn-outline-secondary"><b>{{forloop.counter}}.</b> {{f_name.file.name}}</a> + <a href="{{f_name.file.url}}" class="btn btn-outline-secondary" target="_blank"><b>{{forloop.counter}}.</b> {{f_name.get_filename}}</a> <br> </div> {% endfor %} |