websauna.system.user.models module

Default user model implementations.

Define how User, Group, UserGroup and Activation models are in relationship together.

These models are picked up in websauna.system.Initializer.configure_user_models().

class websauna.system.user.models.Activation(**kwargs)[source]

Bases: websauna.system.user.usermixin.ActivationMixin

The default implementation of user email activation token.

class websauna.system.user.models.Group(**kwargs)[source]

Bases: websauna.system.user.usermixin.GroupMixin

The default group implementation for Websauna.

users = <RelationshipProperty at 0x10853d148; no key>
class websauna.system.user.models.User(**kwargs)[source]

Bases: websauna.system.user.usermixin.UserMixin

The default user implementation for Websauna.

This is a concrete implementation of SQLAlchemy model.

activation = <RelationshipProperty at 0x10853d0c8; no key>

SQLAlchemy relationship for above

activation_id = Column(None, Integer(), ForeignKey('user_activation.id'), table=None)

Current user activation instance for reset password for sign up email verification

class websauna.system.user.models.UserGroup(**kwargs)[source]

Bases: websauna.system.user.usermixin.UserGroupMixin

Map one user to one group.

group_id = Column(None, NullType(), ForeignKey('group.id'), table=None)
user_id = Column(None, NullType(), ForeignKey('users.id'), table=None)