Skip to content

Commit

Permalink
Merge pull request openedx#811 from eduNEXT/and/user_in_different_teams
Browse files Browse the repository at this point in the history
Support a user in different teams
  • Loading branch information
jfavellar90 authored Jun 29, 2018
2 parents f7233a7 + 1b9581e commit 9ebee8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lms/djangoapps/teams/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1356,7 +1356,7 @@ def handle_uploaded_file(self, file, course_id):
try:
team.add_user(user)
except AlreadyOnTeamInCourse:
membership = CourseTeamMembership.objects.get(user__username=user.username)
membership = CourseTeamMembership.get_memberships(username=user.username, course_ids=[course_key])
membership.delete()
team.add_user(user)

Expand Down

0 comments on commit 9ebee8e

Please sign in to comment.