summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authorCruiseDevice2020-05-09 17:42:01 +0530
committerCruiseDevice2020-05-09 17:42:01 +0530
commit9a8330b74c9ee0ddf8720a7326a699ba32922575 (patch)
tree6c658831e0d326a6d4f546b35fec25964f61778e /yaksh/views.py
parentb36ea2af46cbf50aa7a046aa35d0c5c1543e6623 (diff)
downloadonline_test-9a8330b74c9ee0ddf8720a7326a699ba32922575.tar.gz
online_test-9a8330b74c9ee0ddf8720a7326a699ba32922575.tar.bz2
online_test-9a8330b74c9ee0ddf8720a7326a699ba32922575.zip
Fix pep8
- cover missing tests.
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index cde169f..44abcff 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -1190,8 +1190,9 @@ def enroll_reject_user(request,
return redirect('yaksh:course_students', course_id=course_id)
users = User.objects.filter(id__in=reject_ids)
course.reject(was_enrolled, *users)
- messages.success(request, "Rejected students successfully")
+ messages.success(request, "Rejected students successfully")
return redirect('yaksh:course_students', course_id=course_id)
+ return redirect('yaksh:course_students', course_id=course_id)
@login_required
@@ -3242,8 +3243,13 @@ def course_students(request, course_id):
enrolled_users = course.get_enrolled()
requested_users = course.get_requests()
rejected_users = course.get_rejected()
- context = {"enrolled_users": enrolled_users, "requested_users": requested_users, "course": course,
- "rejected_users": rejected_users, "is_students": True}
+ context = {
+ "enrolled_users": enrolled_users,
+ "requested_users": requested_users,
+ "course": course,
+ "rejected_users": rejected_users,
+ "is_students": True
+ }
return my_render_to_response(request, 'yaksh/course_detail.html', context)