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
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.
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 theUSER_ACCESS_SERIALIZER
settings variable.-
serializer_class
-