For team-enabled ORAs, the first member of a team to hit the “Submit” button will cause a submission record to be created for all current members of the team.
Modify the SubmissionMixin.create_submission() method. In addition to creating a submission for the current user, if teams are enabled for the ORA and the user is a member of a team, we must:
Iterate through the other team members of the team.
For each teammate, create a submission record with the same submission data, including file data.
The student_item_dict for each teammate will be similar to the original, but with a different student_id value.
The files included as part of the submission record should be exactly the files recorded in the SharedFileUpload model for the team and assignment for which submissions are generated. We don’t need to capture any file information from the CSM state for generating submissions.