djmvc_auth¶
- class djmvc_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¶
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- property title¶
Human-readable label with the
Viewsuffix removed.
- class djmvc_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 djmvc_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 djmvc_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 djmvc_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.
- djmvc_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.
- djmvc_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 djmvc_auth.views.GroupController[source]¶
Bases:
ModelControllerCRUD for auth groups; autocomplete endpoint used by User form filters.
- class djmvc_auth.views.UserCreateView(**kwargs)[source]¶
Bases:
CreateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class djmvc_auth.views.UserUpdateView(**kwargs)[source]¶
Bases:
UpdateViewConstructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.
- class djmvc_auth.views.AuthController[source]¶
Bases:
Controller