From a627c1ef7827bc81422f772e2e1cb49e928dbf6f Mon Sep 17 00:00:00 2001 From: Tiago Scholten Date: Mon, 8 Jun 2026 09:20:10 +0200 Subject: [PATCH] updated GroupRef to new system --- src/fiber_package/groups/communication.py | 2 +- src/fiber_package/groups/signuplist.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fiber_package/groups/communication.py b/src/fiber_package/groups/communication.py index 13c3d24..52f6c74 100644 --- a/src/fiber_package/groups/communication.py +++ b/src/fiber_package/groups/communication.py @@ -60,7 +60,7 @@ class ActivityModel(CommunicationModel): Field(pattern=CommunicationCategory.activity) ] - signuplist: GroupRef = GroupRef("signuplist", None) + signuplist: GroupRef | None = None # TODO: validate that a signuplist can only be attached if category is # activity? Or should this not be validated? diff --git a/src/fiber_package/groups/signuplist.py b/src/fiber_package/groups/signuplist.py index 042c2a4..92982fa 100644 --- a/src/fiber_package/groups/signuplist.py +++ b/src/fiber_package/groups/signuplist.py @@ -7,6 +7,7 @@ from fiber_package.util import GroupRef A sign-up list is a list of members that have signed up for a given activity. ''' class SignuplistModel(BaseModel): - activity: GroupRef = GroupRef("communication", None) + activity: GroupRef | None = None # TODO: validate that the communication is indeed an activity (or should # this be done?) + # Should None be allowed?