Users views

Return to Views.

UserListView

class projector.views.users.UserListView(request, *args, **kwargs)

Lists all users.

View attributes

  • template_name: projector/accounts/user_list.html

Context variables

  • user_list: queryset of all users

UserHomepageView

class projector.views.users.UserHomepageView(request, *args, **kwargs)

Returns user’s homepage with some useful data.

View attributes

  • template_name: projector/accounts/user_homepage.html

Context variables

  • profile: user’s profile fetched with get_profile User‘s method
  • owned_task_list: queryset of Task objects owned by the user

UserProfileDetailView

class projector.views.users.UserProfileDetailView(request, *args, **kwargs)

Public profile of the given user.

View attributes

  • template_name: projector/accounts/profile.html

Context attributes

  • profile: user’s profile fetched with get_profile User‘s method
  • project_list: queryset of Project objects for which user is member
  • groups: queryset of django.contrib.auth.models.Group objects for the user if user is converted into a Team

UserDashboardView

class projector.views.users.UserDashboardView(request, *args, **kwargs)

User’s dashboard panel.

View attributes

  • template_name: projector/accounts/dashboard.html

Context variables

  • form: UserProfileForm with current user’s profile instance
  • profile: profile passed as instance into the form
  • site: current Site object
  • can_fork_external: boolean allowing or disallowing user to fork projects from external locations

UserDashboardForkView

class projector.views.users.UserDashboardForkView(request, *args, **kwargs)

Returns ExternalForkWizard which encapsulates logic for external forks.

See also

External fork

View attributes

  • template_name: projector/accounts/dashboard_fork.html
  • login_required: True

UserDashboardConvert2TeamView

class projector.views.users.UserDashboardConvert2TeamView(request, *args, **kwargs)

Converts user into Team.

See also

Convert to Team

View attributes

  • template_name: projector/accounts/dashboard-convert-confirm.html

Context variables

UserDashboardAddMember

class projector.views.users.UserDashboardAddMember(request, *args, **kwargs)

Adds new member. Only applicable for Team.