summaryrefslogtreecommitdiff
path: root/fossee_manim/views.py
diff options
context:
space:
mode:
authorAkshen2019-05-16 16:35:53 +0530
committerGitHub2019-05-16 16:35:53 +0530
commit10766f3627f1f013913c6ef9680c7d5f4e12f433 (patch)
tree11aa6c3516f1f9f6a953c6755fdfeca05cdcf18d /fossee_manim/views.py
parentaa58a80b07cb997d3d089e6943517b541f28bb03 (diff)
parent54bc2c41eca86b28c48bc12cdf5da1757beadc02 (diff)
downloadFOSSEE_animations-10766f3627f1f013913c6ef9680c7d5f4e12f433.tar.gz
FOSSEE_animations-10766f3627f1f013913c6ef9680c7d5f4e12f433.tar.bz2
FOSSEE_animations-10766f3627f1f013913c6ef9680c7d5f4e12f433.zip
Merge pull request #16 from Akshen/develop
add outline to videos
Diffstat (limited to 'fossee_manim/views.py')
-rw-r--r--fossee_manim/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fossee_manim/views.py b/fossee_manim/views.py
index 50aa816..ae3d90a 100644
--- a/fossee_manim/views.py
+++ b/fossee_manim/views.py
@@ -414,7 +414,8 @@ def search(request):
word = request.POST.get('sbox')
anime_list = AnimationStats.objects.filter(
Q(animation__title__contains=word) | Q(animation__outline__contains=word)
- | Q(animation__category__name__contains=word), animation__status='released')
+ | Q(animation__category__name__contains=word) | Q(animation__subcategory__contains=word),
+ animation__status='released')
return render(request, 'fossee_manim/search_results.html',
{'s_result': anime_list, 'categories': categories})