From 6f7a60300442c41e708b024c8b58ca90773e7a82 Mon Sep 17 00:00:00 2001 From: Sh-Ac Date: Wed, 28 Aug 2019 15:28:24 +0530 Subject: add categories variable to explore.html; fix explore button glitch --- fossee_manim/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fossee_manim/views.py b/fossee_manim/views.py index cc62d0e..3ba5e91 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -199,8 +199,10 @@ def user_register(request): def explore(request, category): + categories = Category.objects.all() #not related to category below videos = AnimationStats.objects.filter(animation__category__name= category , animation__status="released") - return render(request, "fossee_manim/explore.html", {"videos": videos}) + + return render(request, "fossee_manim/explore.html", {"videos": videos, "categories": categories}) @login_required def view_profile(request): -- cgit