def autocomplete_project_manager(request, team, project_slug): project = get_object_or_404(team.project_set, slug=project_slug) return autocomplete_user_view(request, project.potential_managers())
def autocomplete_language_manager(request, team, language_code): return autocomplete_user_view( request, team.potential_language_managers(language_code))
def autocomplete_invite_user(request, team): return autocomplete_user_view(request, team.invitable_users())