diff options
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): |