summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2020-02-28 11:46:41 +0530
committeradityacp2020-02-28 11:46:41 +0530
commit1212811391eaafb7e86a2fdc825b4b0ecc20df45 (patch)
treed3f1aed2de829ba2e43abdaa8b9969c915e346d9 /yaksh/views.py
parent0d189e0156741685e6f6f1c605bf99b44d082b0b (diff)
downloadonline_test-1212811391eaafb7e86a2fdc825b4b0ecc20df45.tar.gz
online_test-1212811391eaafb7e86a2fdc825b4b0ecc20df45.tar.bz2
online_test-1212811391eaafb7e86a2fdc825b4b0ecc20df45.zip
Change in views, change password, paginator
- Add bootstrap form control class in change password - Show alert messages in change password - Increase number of pages in paginator - Reduce number of course pages in moderator dashboard
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 8ac8343..5d26822 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -409,7 +409,7 @@ def prof_manage(request, msg=None):
courses = Course.objects.get_queryset().filter(
Q(creator=user) | Q(teachers=user),
is_trial=False).distinct().order_by("-active")
- paginator = Paginator(courses, 30)
+ paginator = Paginator(courses, 20)
page = request.GET.get('page')
try:
courses = paginator.page(page)