mek32390 / mchp-dev

Unified academic planner and study guide marketplace
0 stars 0 forks source link

Prevent interns from uploading duplicate sets #249

Closed mek32390 closed 6 years ago

mek32390 commented 9 years ago

Once a class set is approved for a class, another intern shouldn't be able to submit a set to that class. The class should be instructor and section specific. The issue is that on mchp, we don't have sections. Here is an example:

The above situation should be allowed, because although Intern 1 already submitted a class set for ECON 100 with instructor Bill, Intern 1 only submitted it for Section A of the class. There was an additional section, B, that had a new roster associated with it, and had all new students.

So, in order to not allow the submission of duplicate sets for a class, a submitted set can't be for the same course, instructor, AND can't have the same roster as a previously submitted set. But, even though there are two sections and therefore two rosters, on mchp, there is still only one course: ECON 100 with Instr Bill, and that course still only has 1 primary calendar.

Johnsel commented 9 years ago

Almost done with this baby, sadly I got stuck and @mitchellias not around :(

Johnsel commented 9 years ago

mchp/schedule/views.py class CourseRemoveView(_BaseCourseView, AjaxableResponseMixin):