EighthScheduledActivityManager¶
Qualified name: intranet.apps.eighth.models.EighthScheduledActivityManager
- class intranet.apps.eighth.models.EighthScheduledActivityManager(*args, **kwargs)[source]¶
Bases:
Manager
Model Manager for EighthScheduledActivity.
Methods
Returns a QuerySet of EighthScheduledActivities where the given EighthSponsor is sponsoring. If a sponsorship is defined in an EighthActivity, it may be overridden on a block by block basis in an EighthScheduledActivity. Sponsors from the EighthActivity do not carry over. EighthScheduledActivities that are deleted or cancelled are also not counted. :param sponsor: The sponsor to search for. :param include_cancelled: Whether to include cancelled activities. Deleted activities are always excluded.
Attributes
- for_sponsor(sponsor: EighthSponsor, include_cancelled: bool = False) QuerySet | Collection[EighthScheduledActivity] [source]¶
Returns a QuerySet of EighthScheduledActivities where the given EighthSponsor is sponsoring. If a sponsorship is defined in an EighthActivity, it may be overridden on a block by block basis in an EighthScheduledActivity. Sponsors from the EighthActivity do not carry over. EighthScheduledActivities that are deleted or cancelled are also not counted. :param sponsor: The sponsor to search for. :param include_cancelled: Whether to include cancelled activities. Deleted
activities are always excluded.
- Returns:
- A QuerySet of EighthScheduledActivities where the given EighthSponsor
is sponsoring.