Skip to content

Commit

Permalink
fix: set shared_with to nobody
Browse files Browse the repository at this point in the history
  • Loading branch information
Seb Palmer committed Nov 1, 2024
1 parent 9ef702c commit ab21f33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions portal/views/teacher/teach.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,9 @@ def process_dismiss_student_form(request, formset, klass, access_code):
)

students_levels = Level.objects.filter(owner=student.new_user.userprofile).all()
for level in students_levels.all():
for other in level.shared_with.all():
level.shared_with.remove(other)
for level in students_levels:
level.shared_with.set([])
level.save()

student.class_field = None
student.new_user.first_name = data["name"]
Expand Down

0 comments on commit ab21f33

Please sign in to comment.