diff options
author | ankitjavalkar | 2019-09-26 15:29:47 +0530 |
---|---|---|
committer | ankitjavalkar | 2019-09-26 15:29:47 +0530 |
commit | b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb (patch) | |
tree | 56f02b77cfda412243ecb10c88d31c7f603b726a /workshop_app/views.py | |
parent | 4a8ae597541d744c4e172dfd71b8d0a617c2d1dd (diff) | |
download | workshop_booking-b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb.tar.gz workshop_booking-b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb.tar.bz2 workshop_booking-b0c2a45920a0ae7c0c2054ad403cb7d326bc39eb.zip |
Add banner management system to workshop website
Diffstat (limited to 'workshop_app/views.py')
-rw-r--r-- | workshop_app/views.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/workshop_app/views.py b/workshop_app/views.py index 961445a..1a8015a 100644 --- a/workshop_app/views.py +++ b/workshop_app/views.py @@ -8,7 +8,7 @@ from .models import ( has_profile, Workshop, WorkshopType, RequestedWorkshop, BookedWorkshop, ProposeWorkshopDate, - Testimonial, ProfileComments + Testimonial, ProfileComments, Banner ) from datetime import datetime, date from django.contrib.auth import login, logout, authenticate @@ -71,8 +71,13 @@ def index(request): return redirect('/manage/') return redirect('/book/') - return render(request, "workshop_app/index.html", {"form": form, - "testimonials": testimonials }) + return render(request, "workshop_app/index.html", + { + "form": form, + "testimonials": testimonials, + "banners": Banner.objects.all(), + } + ) def is_instructor(user): |