diff --git a/scipost/forms.py b/scipost/forms.py index 2547bb34a10886db41d7a9a997436b4fd8d86504..50e6a5557616ce4364db520a96e53de2719a7679 100644 --- a/scipost/forms.py +++ b/scipost/forms.py @@ -304,7 +304,7 @@ class UpdatePersonalDataForm(forms.ModelForm): for report in reports: report.doideposit_needs_updating = True report.save() - comments = Comment.objects.filter(author=contributor, anonymous=False) + comments = Comment.objects.filter(author=self.instance, anonymous=False) for comment in comments: comment.doideposit_needs_updating = True comment.save()