From 377ebbad1e3c21ce9ebb508f4eb7e03a40ac7042 Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Thu, 16 Jan 2025 15:08:36 +0100
Subject: [PATCH] =?UTF-8?q?fix(pool):=20=F0=9F=A9=B9=20filter=20authors=20?=
 =?UTF-8?q?from=20pool=20add=20fellow?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 scipost_django/colleges/forms.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scipost_django/colleges/forms.py b/scipost_django/colleges/forms.py
index b60773d46..39f232d36 100644
--- a/scipost_django/colleges/forms.py
+++ b/scipost_django/colleges/forms.py
@@ -267,6 +267,7 @@ class SubmissionAddFellowshipForm(forms.ModelForm):
         self.fields["fellowship"].label = ""
         self.fields["fellowship"].queryset = (
             Fellowship.objects.active()
+            .without_authorship_of_submission(self.instance)
             .filter(college=self.instance.submitted_to.college)
             .exclude(id__in=pool)
         )
-- 
GitLab