From ac46529fe25a5c178d270e666b3f88edff6bbf62 Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Thu, 11 Jun 2026 23:01:18 +0200 Subject: [PATCH] Correcting a __hash__ function, has no pratical effect due to the unique_together constraints but it is still not correct. --- hypha/apply/funds/models/assigned_reviewers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypha/apply/funds/models/assigned_reviewers.py b/hypha/apply/funds/models/assigned_reviewers.py index 73bf42d4e9..eb6f6425e7 100644 --- a/hypha/apply/funds/models/assigned_reviewers.py +++ b/hypha/apply/funds/models/assigned_reviewers.py @@ -184,7 +184,7 @@ class Meta: verbose_name_plural = _("assigned reviewers") def __hash__(self): - return hash(self.pk) + return hash((self.reviewer_id, self.role_id)) def __str__(self): return f"{self.reviewer}"