User Group Python Module

UserGroup links Groups and Users and objects.

class pacifica.metadata.orm.user_group.UserGroup(*args, **kwargs)[source]

UserGroup attributes are foreign keys.

Attributes:
Name Description
person Link to the Users model
group Link to the Groups model
DoesNotExist

alias of UserGroupDoesNotExist

_meta = <peewee.Metadata object>
_schema = <peewee.SchemaManager object>
created = <ExtendDateTimeField: UserGroup.created>
deleted = <ExtendDateTimeField: UserGroup.deleted>
from_hash(obj)[source]

Convert the hash into the object.

group = <ForeignKeyField: UserGroup.group>
group_id = <ForeignKeyField: UserGroup.group>
person = <ForeignKeyField: UserGroup.person>
person_id = <ForeignKeyField: UserGroup.person>
to_hash(**flags)[source]

Convert the object to a hash.

updated = <ExtendDateTimeField: UserGroup.updated>
classmethod where_clause(kwargs)[source]

Where clause for the various elements.