Source code for parliament.collections.political_business_participant

from __future__ import annotations

from onegov.core.collection import GenericCollection
from onegov.parliament.models import PoliticalBusinessParticipation

from typing import TYPE_CHECKING
if TYPE_CHECKING:
    from sqlalchemy.orm import Session


[docs] class PoliticalBusinessParticipationCollection( GenericCollection[PoliticalBusinessParticipation] ): def __init__(self, session: Session, active: bool | None = None): super().__init__(session)
[docs] self.active = active
@property
[docs] def model_class(self) -> type[PoliticalBusinessParticipation]: return PoliticalBusinessParticipation