diff options
author | Sharanya A | 2019-07-31 16:19:55 +0530 |
---|---|---|
committer | Sharanya A | 2019-07-31 16:19:55 +0530 |
commit | af4a10b4913cece224e0bc352c9ac62f61bcad19 (patch) | |
tree | 835b652f994ee2b21a6c41449365180507e2fd46 /fossee_manim/views.py | |
parent | 92ff0fc1a4c95f62d74ec43f75107944e23bed0f (diff) | |
download | FOSSEE_animations-af4a10b4913cece224e0bc352c9ac62f61bcad19.tar.gz FOSSEE_animations-af4a10b4913cece224e0bc352c9ac62f61bcad19.tar.bz2 FOSSEE_animations-af4a10b4913cece224e0bc352c9ac62f61bcad19.zip |
changes to urls, views
Diffstat (limited to 'fossee_manim/views.py')
-rw-r--r-- | fossee_manim/views.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/fossee_manim/views.py b/fossee_manim/views.py index a0d0c22..06c7b3b 100644 --- a/fossee_manim/views.py +++ b/fossee_manim/views.py @@ -35,7 +35,7 @@ except ImportError: __author__ = "Akshen Doke" __credits__ = ["Prabhu Ramachandran", "Aditya P.", "KhushalSingh Rajput", - "Prathamesh Salunke", "Purusharth Saxsena", "Sharanya Achut" + "Prathamesh Salunke", "Purusharth Saxsena", "Sharanya Achut", "Ankit Javalkar" ] def makepath(proposal_data, reject=None): @@ -88,7 +88,7 @@ def index(request): def is_reviewer(user): - '''Check if the user is having reviewer rights''' + '''Check if the user has reviewer rights''' return user.groups.filter(name='reviewer').exists() @@ -304,7 +304,7 @@ def proposal_status(request): anime = Animation.objects.filter(contributor_id=user).order_by('-created') else: anime_list = Animation.objects.order_by('-created') - + # Show upto 9 proposals per page paginator_c = Paginator(list(anime), 9) paginator_r = Paginator(list(anime_list), 9) @@ -429,7 +429,7 @@ def search(request): Q(animation__title__contains=word) | Q(animation__outline__contains=word) | 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}) @@ -499,7 +499,7 @@ def video(request, aid=None): return redirect('/login/') else: return redirect('/view_profile/') - + if len(suggestion_list)>3: suggestion_list = sample(suggestion_list, 3) else: @@ -525,7 +525,10 @@ def search_category(request, cat=None): def guidelines(request): categories = Category.objects.all() return render(request, 'fossee_manim/guidelines.html', {'categories': categories}) - + +def about(request): + categories = Category.objects.all() + return render(request, 'fossee_manim/about.html', {'categories': categories}) def honorarium(request): categories = Category.objects.all() @@ -533,4 +536,4 @@ def honorarium(request): def faqs(request): categories = Category.objects.all() - return render(request, 'fossee_manim/faqs.html', {'categories': categories})
\ No newline at end of file + return render(request, 'fossee_manim/faqs.html', {'categories': categories}) |