user.collections.group ====================== .. py:module:: user.collections.group Attributes ---------- .. autoapisummary:: user.collections.group._G Classes ------- .. autoapisummary:: user.collections.group.UserGroupCollection Module Contents --------------- .. py:data:: _G .. py:class:: UserGroupCollection(session: sqlalchemy.orm.Session, type: Literal['*', 'generic'] = ...) UserGroupCollection(session: sqlalchemy.orm.Session, type: str) Bases: :py:obj:`onegov.core.collection.GenericCollection`\ [\ :py:obj:`_G`\ ] Manages a list of user groups. Use it like this:: from onegov.user import UserGroupCollection groups = UserGroupCollection(session) .. py:attribute:: session .. py:attribute:: type :value: '*' .. py:property:: model_class :type: type[_G] .. py:method:: query() -> sqlalchemy.orm.Query[_G]