Skip to content

Commit

Permalink
Merge pull request #79 from planetterp/update-aliases
Browse files Browse the repository at this point in the history
update ProfessorAlias after merge
  • Loading branch information
tybug authored Jan 30, 2023
2 parents bf694f0 + ed412fd commit 5c4aed4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions home/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def post(self, request):
ProfessorCourse.objects.filter(professor__id=subject_id).update(professor=merge_target)
Review.unfiltered.filter(professor__id=subject_id).update(professor=merge_target)
Grade.unfiltered.filter(professor__id=subject_id).update(professor=merge_target)
ProfessorAlias.objects.filter(professor=merge_subject).update(professor=merge_target)

aliases = ProfessorAlias.objects.filter(alias=merge_subject.name, professor=merge_target)
if not aliases.exists():
Expand Down

0 comments on commit 5c4aed4

Please sign in to comment.