From 94479d85c44fd9385ae857ed894786ff9e1729ae Mon Sep 17 00:00:00 2001
From: George Katsikas <giorgakis.katsikas@gmail.com>
Date: Mon, 26 Feb 2024 14:01:49 +0100
Subject: [PATCH] add nomination note: fellowship after registration

---
 scipost_django/colleges/models/nomination.py | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/scipost_django/colleges/models/nomination.py b/scipost_django/colleges/models/nomination.py
index 2177e0bc7..ab2e8a6e8 100644
--- a/scipost_django/colleges/models/nomination.py
+++ b/scipost_django/colleges/models/nomination.py
@@ -159,13 +159,21 @@ class FellowshipNomination(models.Model):
         except FellowshipInvitation.DoesNotExist:
             return notes
 
-        if self.invitation.accepted and not hasattr(self.profile, "contributor"):
-            notes.append(
-                (
-                    "info",
-                    "Fellow has accepted their invitation, but has not registered yet.",
+        if self.invitation.accepted:
+            if not hasattr(self.profile, "contributor"):
+                notes.append(
+                    (
+                        "info",
+                        "Fellow has accepted their invitation, but has not registered yet.",
+                    )
+                )
+            elif getattr(self, "fellowship") is None:
+                notes.append(
+                    (
+                        "warning",
+                        "Fellow has created an account, but their Fellowship has not been created yet.",
+                    )
                 )
-            )
 
         last_reinvited = self.events.filter(
             Q(description__icontains="invitation reminder")
-- 
GitLab