Skip to content

Commit

Permalink
don't filter aliases by professor
Browse files Browse the repository at this point in the history
  • Loading branch information
nsandler1 committed Jan 31, 2023
1 parent 26e7b83 commit b9ea2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def post(self, request):
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)
aliases = ProfessorAlias.objects.filter(alias=merge_subject.name)
if not aliases.exists():
ProfessorAlias(alias=merge_subject.name, professor=merge_target).save()

Expand Down

0 comments on commit b9ea2a3

Please sign in to comment.