summaryrefslogtreecommitdiff
path: root/yaksh/views.py
AgeCommit message (Collapse)Author
2017-10-27Edit Profile Bug Fixprathamesh
edit_profile view had a decorator has_profile. So, has_profile will redirect to edit_profile if no profile. But then if I submit my profile form then the has_profile will again redirect to edit_profile, instead of updating my profile. So this cycle will continue endlessly for a user with no profile, and will never be able to create/update his profile! Will face this when user is created via csv upload, django admin or oauth login without pipeline. Also, profile instance is passed to the profile form via get query, which will fail if no profile. Added a views test for the above. Fixed. Additionally that can be thought of later: The has_profile decorator is used for few views only, so one can access views if they know the url, even if they do not have a profile. email edit option for users
2017-10-06Pep8 change in views.pyadityacp
2017-10-05Update grade user UImahesh
2017-10-04Update non-code and non-upload answers instead of creating a new onemaheshgudi
2017-10-04Fix bug to prevent saving a code question answer on skipankitjavalkar
2017-09-19Fixes Nonetype object has attribute 'encode' errormaheshgudi
2017-09-12Change in variable nameprathamesh
2017-09-08Modification as per comments on the PRprathamesh
2017-09-05Merge branch 'master' of https://github.com/FOSSEE/online_test into ↵prathamesh
improve-code-server Conflicts Resolved: yaksh/views.py
2017-09-05Fixes minor mistake.maheshgudi
2017-09-02Issue after merge resolvedprathamesh
2017-09-02Resolved Conflictsprathamesh
2017-09-01Rebase changesmahesh
2017-09-01Merge branch 'master' of https://github.com/FOSSEE/online_test into ↵prathamesh
improve-code-server Conflicts Resolved: .travis.yml yaksh/views.py
2017-09-01Merge branch 'master' of https://github.com/FOSSEE/online_test into ↵prathamesh
improve-code-server Conflicts Resolved: yaksh/templates/yaksh/question.html
2017-09-01Merge pull request #309 from ankitjavalkar/fix-closed-coursePrabhu Ramachandran
Fix bug to prevent students from attempting pre-enrolled deactivated course
2017-09-01Removed all the checkpoints set for selenium tests on travisprathamesh
javascript strings includes method changed to indexOf, as includes belongs to ES6. This was the main reason for failure of selenium tests on travis.
2017-09-01Merge branch 'master' of https://github.com/fossee/online_test into ↵mahesh
add_tag_search
2017-09-01User Cannot skip/jump attempt numbers. Forces incremental nature of attempt ↵maheshgudi
number.
2017-09-01updated travis config and added print to debug on travisprathamesh
2017-08-30Fixes Multiple answerpaper objects returned bugmahesh
2017-08-29Fixes 'AnonymousUser' object is not iterable bug.mahesh
2017-08-28Add changes to make PEP8 compliantankitjavalkar
2017-08-28Fix bug: Prevent students from attempting pre-enrolled deactivated coursesankitjavalkar
2017-08-25Fixes order in demo_questions.zipmahesh
- Template yaml is now generated on the fly. - Removes yaml_question_template files. - Fixes order for yaml file inside demo_questions.zip
2017-08-24Merge branch 'master' of https://github.com/fossee/online_test into ↵mahesh
yaml_questions
2017-08-24Add a has_profile decoratorankitjavalkar
2017-08-24Merge pull request #311 from ankitjavalkar/show_enrolled_hidden_crsPrabhu Ramachandran
Display all hidden courses with pending enrollment requests
2017-08-24Merge pull request #300 from ankitjavalkar/validate-quiz-prerequisitePrabhu Ramachandran
Validate quiz prerequisite field
2017-08-22Change course.js, course_detail.html and views.pyadityacp
- Change form submission for send email in js - Change template and view variable for mail status
2017-08-17Change views.pyadityacp
- Pep8 changes - Remove redundant check from send mail function - Move validation send mail validation to js
2017-08-14Changes related to front-endprathamesh
Removed snippet append in the check view as snippet is not posted in request. Added an overlay when an user submits a code, with a status text on it. This is to block user from triggering any other event when JS is running. Overlay disappears when JS complete its execution. On time out a request is posted via JS, it receives a JSON response but cannot display user the error as time is over. So in such case, the django itself handles the result and does not return JSONv response.
2017-08-14To handle unknown status response from code serverprathamesh
2017-08-14Front-end modification for improved code serverprathamesh
Added JQuery to handle request. Sends ajax request and gets json as response. json contains token i.e uid which is answer id. Using uid, an ajax request is sent after every 2 secs till the server gives the desire result. If the code result has error then html is written on the document. If the result has correct answer then next question is displayed. *includes function for string will not work for older browers. Will substitute with a different function in next commit.
2017-08-03Display all hidden courses with pending enrollment requests and rejectionsankitjavalkar
2017-08-03Modifies UI for questions sectionmahesh
2017-07-31Adds yaml serialization to download and upload questionsmahesh
2017-06-14removes Question queryset from tag searchingmahesh
2017-06-14searches for tagged questionsmahesh
2017-06-14added search tag feature in showquestionsmahesh
2017-06-13Resolve conflicts with latest changesadityacp
2017-06-13Merge pull request #298 from adityacp/views_testPrabhu Ramachandran
Views test
2017-06-12Add latest changes after rebaseadityacp
2017-06-12Change views.py and urls.py
- Add new url for sending email - Add new view function to send email to students
2017-05-31Validate quiz prerequisite fieldankitjavalkar
2017-05-25Add check for verifying moderator
2017-05-19Change attachment response in views.pyadityacp
2017-05-16Change forms.py, views.py, send_emails.py, models.pyadityacp
- Alter activation_key field in Profile model - Change get_activation_key function in send_mail to create secret_key of fixed length - Change forms.py to get updated activation_key - Change views.py to save activation_key
2017-05-15Change urls.py and views.pyadityacp
- Change views to send mails to students enrolled in a course - Add reverse resolution in urls.py
2017-05-03Change forms.py, views.py and urls.pyadityacp
- Store activation key expiry time according to timezone for email verification and activation - Add reverse resolution in urls.py