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.ExportCsvAdminMixinAn abstract admin class for the
certego_saas.user.models.Usermodel.-
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.ModelSerializerUsed 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_SERIALIZERsettings variable.
views.py
-
class
certego_saas.user.views.UserAccessView(**kwargs)[source] Bases:
certego_saas.ext.views.APIViewThis 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_classis populated using theUSER_ACCESS_SERIALIZERsettings variable.-
serializer_class
-