SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 94479d85 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add nomination note: fellowship after registration

parent 7a086a8f
No related branches found
No related tags found
No related merge requests found
...@@ -159,13 +159,21 @@ class FellowshipNomination(models.Model): ...@@ -159,13 +159,21 @@ class FellowshipNomination(models.Model):
except FellowshipInvitation.DoesNotExist: except FellowshipInvitation.DoesNotExist:
return notes return notes
if self.invitation.accepted and not hasattr(self.profile, "contributor"): if self.invitation.accepted:
notes.append( if not hasattr(self.profile, "contributor"):
( notes.append(
"info", (
"Fellow has accepted their invitation, but has not registered yet.", "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( last_reinvited = self.events.filter(
Q(description__icontains="invitation reminder") Q(description__icontains="invitation reminder")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment