websauna.system.user.admins module

Admin URL endpoints for user and group management.

class websauna.system.user.admins.GroupAdmin(request)[source]

Bases: websauna.system.admin.modeladmin.ModelAdmin

Models/groups admin root resource.

class Resource(request, obj)[source]

Bases: websauna.system.admin.modeladmin.Resource

Wrap one SQLAlchemy group model to admin resource.

get_object() returns websauna.system.user.model.Group.

mapper = <websauna.system.crud.urlmapper.Base64UUIDMapper object>
model

alias of websauna.system.user.models.Group

plural_name = 'groups'
singular_name = 'group'
title = 'Groups'

Traverse title

class websauna.system.user.admins.UserAdmin(request)[source]

Bases: websauna.system.admin.modeladmin.ModelAdmin

Models/user admin root resource.

class Resource(request, obj)[source]

Bases: websauna.system.admin.modeladmin.Resource

Wrap one SQLAlchemy user mode to admin resource.

get_object() returns websauna.system.user.model.User.

get_title()[source]

Return the title to be used on the admin.

Return type:str
Returns:Object friendly_name.
mapper = <websauna.system.crud.urlmapper.Base64UUIDMapper object>
model

alias of websauna.system.user.models.User

plural_name = 'users'
singular_name = 'user'
title = 'Users'

Traverse title