summaryrefslogtreecommitdiff
path: root/yaksh/templates
diff options
context:
space:
mode:
authorCruiseDevice2019-02-28 15:59:04 +0530
committerCruiseDevice2019-02-28 16:02:42 +0530
commitf8fdaabc6725ac4019e6017b3f41c29341e16218 (patch)
tree5790e720091d31298bad4f3bc7917a59a2accc67 /yaksh/templates
parentbc275976bcba4624de66a2fe69d147a32d50a37d (diff)
downloadonline_test-f8fdaabc6725ac4019e6017b3f41c29341e16218.tar.gz
online_test-f8fdaabc6725ac4019e6017b3f41c29341e16218.tar.bz2
online_test-f8fdaabc6725ac4019e6017b3f41c29341e16218.zip
Use built-in django url tag inplace of hard-code URL in template
Diffstat (limited to 'yaksh/templates')
-rw-r--r--yaksh/templates/yaksh/course_modules.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/templates/yaksh/course_modules.html b/yaksh/templates/yaksh/course_modules.html
index 0c75b91..e1fdc51 100644
--- a/yaksh/templates/yaksh/course_modules.html
+++ b/yaksh/templates/yaksh/course_modules.html
@@ -20,7 +20,7 @@
<div class="col h4"> {{ course.name }} </div>
<div class = "col">
{% if course.has_lessons %}
- <a href="{{URL_ROOT}}/exam/download_course/{{course.id}}" data-toggle="tooltip" title="Download course content" class="btn btn-primary pull-right">
+ <a href="{% url 'yaksh:download_course' course.id %}" data-toggle="tooltip" title="Download course content" class="btn btn-primary pull-right">
Download Course
</a>
{% endif %}