User (certego_saas.user)

admin.py


class certego_saas.user.admin.AbstractUserAdmin(model, admin_site)[source]

Bases: django.contrib.auth.admin.UserAdmin, certego_saas.ext.mixins.ExportCsvAdminMixin

An abstract admin class for the certego_saas.user.models.User model.

add_form

alias of certego_saas.user.forms.UserCreateForm

models.py


class certego_saas.user.models.User(id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined, approved)[source]

Bases: certego_saas.user.models.AbstractUser

INTEGRATIONS = <bound method ? of <class 'certego_saas.user.models.User'>>

serializers.py


class certego_saas.user.serializers.UserAccessSerializer(*args, **kwargs)[source]

Bases: rest_framework.serializers.ModelSerializer

Used by UserAccessView.

Ideally, this serializer should be extended inside your service’s source code adding user relevant information and then point to it with the USER_ACCESS_SERIALIZER settings variable.

class certego_saas.user.serializers.UserSerializer(*args, **kwargs)[source]

Bases: rest_flex_fields.serializers.FlexFieldsModelSerializer

Reusable serializer for User model.

views.py


class certego_saas.user.views.UserAccessView(**kwargs)[source]

Bases: certego_saas.ext.views.APIView

This is supposed to be the first endpoint hit by the user when they visit the webapp. Ideally, it should respond with user information, user usage information and user subscription information.

This view’s serializer_class is populated using the USER_ACCESS_SERIALIZER settings variable.

serializer_class

alias of certego_saas.user.serializers.UserAccessSerializer