EighthSignupManager¶
Qualified name: intranet.apps.eighth.models.EighthSignupManager
- class intranet.apps.eighth.models.EighthSignupManager(*args, **kwargs)[source]¶
Bases:
Manager
Model manager for EighthSignup.
Methods
Creates an EighthSignup for the given user in the given activity after checking for duplicate signups.
Returns all EighthSignups for which the student was marked as absent.
Attributes
- create_signup(user: User, scheduled_activity: EighthScheduledActivity, **kwargs) EighthSignup [source]¶
Creates an EighthSignup for the given user in the given activity after checking for duplicate signups. This raises an error if there are duplicate signups. :param user: The user to create the EighthSignup for. :param scheduled_activity: The EighthScheduledActivity to sign the user up for.
- get_absences() QuerySet | Collection[EighthSignup] [source]¶
Returns all EighthSignups for which the student was marked as absent. :returns: A QuerySet of all the EighthSignups for which the student was marked as absent.