diff options
author | Sh-Ac | 2019-08-28 15:28:24 +0530 |
---|---|---|
committer | Sh-Ac | 2019-08-28 15:28:24 +0530 |
commit | 6f7a60300442c41e708b024c8b58ca90773e7a82 (patch) | |
tree | 30bacfb19680c8f4f3984e8551b1bfbe859b3f75 | |
parent | 0d9104e99647f0a251a0ccd98973004417f08a89 (diff) | |
download | FOSSEE_animations-6f7a60300442c41e708b024c8b58ca90773e7a82.tar.gz FOSSEE_animations-6f7a60300442c41e708b024c8b58ca90773e7a82.tar.bz2 FOSSEE_animations-6f7a60300442c41e708b024c8b58ca90773e7a82.zip |
add categories variable to explore.html;
fix explore button glitch
-rw-r--r-- | fossee_manim/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
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): |