djcrud_auth¶
- class djcrud_auth.views.LoginView(**kwargs)[source]¶
Bases:
FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- form_class¶
alias of
AuthenticationForm
- property form_attributes¶
HTML attributes for the login form; targets the full page body.
- property title¶
Human-readable label with the
Viewsuffix removed.
- class djcrud_auth.views.LogoutView(**kwargs)[source]¶
Bases:
FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- property title¶
Human-readable label with the
Viewsuffix removed.
- class djcrud_auth.views.PasswordView(**kwargs)[source]¶
Bases:
ObjectMixin,ModelMixin,FormMixin,TemplateViewMixin,FormViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- property codename¶
URL segment with the model name removed from the default codename.
- property title¶
Human-readable label with the model class name removed.
- class djcrud_auth.views.BecomeUser(**kwargs)[source]¶
Bases:
ObjectMixin,ModelMixin,ViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- property codename¶
URL segment with the model name removed from the default codename.
- property title¶
Human-readable label with the model class name removed.
- class djcrud_auth.views.Become(**kwargs)[source]¶
Bases:
ViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- property codename¶
URL segment with the
viewsuffix removed from the class name.
- property title¶
Human-readable label with the
Viewsuffix removed.
- djcrud_auth.views.get_custom_user_creation_form()[source]¶
Return UserCreationForm for the configured AUTH_USER_MODEL.
Django’s default forms are hardcoded to auth.User, so we create a new form class with type() that uses settings.AUTH_USER_MODEL instead.
- djcrud_auth.views.get_custom_user_change_form()[source]¶
Return UserChangeForm for the configured AUTH_USER_MODEL.
Django’s default forms are hardcoded to auth.User, so we create a new form class with type() that uses settings.AUTH_USER_MODEL instead.
- class djcrud_auth.views.GroupRouter[source]¶
Bases:
ModelRouterCRUD for auth groups; autocomplete endpoint used by User form filters.
- class djcrud_auth.views.UserCreateView(**kwargs)[source]¶
Bases:
CreateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class djcrud_auth.views.UserUpdateView(**kwargs)[source]¶
Bases:
UpdateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.