summaryrefslogtreecommitdiff
path: root/workshop_app/views.py
diff options
context:
space:
mode:
authorAkshen2018-02-26 10:43:11 +0530
committerAkshen2018-02-26 10:43:11 +0530
commit2def2ac48f9aac88d68398fe30bd533c9b559b01 (patch)
treed9b0517f05e83e11896f4f673117c774eed8e90e /workshop_app/views.py
parent403cfcaf592f993a6448c24f20d8c2baa78f50de (diff)
downloadworkshop_booking-2def2ac48f9aac88d68398fe30bd533c9b559b01.tar.gz
workshop_booking-2def2ac48f9aac88d68398fe30bd533c9b559b01.tar.bz2
workshop_booking-2def2ac48f9aac88d68398fe30bd533c9b559b01.zip
Redirect How to participate option to html
This commit will redirect how to participate option to html page with flowchart image
Diffstat (limited to 'workshop_app/views.py')
-rw-r--r--workshop_app/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/workshop_app/views.py b/workshop_app/views.py
index b08104c..94c78c0 100644
--- a/workshop_app/views.py
+++ b/workshop_app/views.py
@@ -890,8 +890,7 @@ def how_to_participate(request):
def file_view(request, workshop_title):
if workshop_title =='flowchart':
- pdf_file = open(path.join(settings.MEDIA_ROOT,'flowchart.pdf'), 'rb')
- return HttpResponse(pdf_file, content_type="application/pdf")
+ return render(request, 'workshop_app/how_to_participate.html')
else:
filename = WorkshopType.objects.get(id=workshop_title)
attachment_path = path.dirname(filename.workshoptype_attachments.path)