updated GroupRef to new system

This commit is contained in:
Tiago Scholten 2026-06-08 09:20:10 +02:00
parent 3346612fe6
commit a627c1ef78
2 changed files with 3 additions and 2 deletions

View File

@ -60,7 +60,7 @@ class ActivityModel(CommunicationModel):
Field(pattern=CommunicationCategory.activity) 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 # TODO: validate that a signuplist can only be attached if category is
# activity? Or should this not be validated? # activity? Or should this not be validated?

View File

@ -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. A sign-up list is a list of members that have signed up for a given activity.
''' '''
class SignuplistModel(BaseModel): class SignuplistModel(BaseModel):
activity: GroupRef = GroupRef("communication", None) activity: GroupRef | None = None
# TODO: validate that the communication is indeed an activity (or should # TODO: validate that the communication is indeed an activity (or should
# this be done?) # this be done?)
# Should None be allowed?