Auth Views

Source is located in the views, which we’ll describe here.

Crudlfa+ PasswordView, Become and BecomeUser views.

Crudlfa+ takes views further than Django and are expected to:

  • generate their URL definitions and reversions,
  • check if a user has permission for an object,
  • declare the names of the navigation menus they belong to.
class crudlfap_auth.views.Become(**kwargs)[source]
has_perm()[source]

Checks for user permission.

class crudlfap_auth.views.BecomeUser(**kwargs)[source]
get_object(queryset=None)[source]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

get_title_menu()[source]

Return title for menu links to this view.

class crudlfap_auth.views.PasswordView(**kwargs)[source]
get_form_kwargs()[source]

Return the keyword arguments for instantiating the form.

get_title_submit()[source]

Title of the submit button.

Defaults to title_menu