def profile_page(request, user_id): data = get_common_page_data(request) user = get_object_or_404(get_user_model(), pk=user_id) data['user_profile'] = user data['user_executions'] = Execution.get_inline_by_user(user.id) return render(request, 'page/profile.html', data)
def profile_page(request, user_id): data = {} user = get_object_or_404(get_user_model(), pk=user_id) data['user_profile'] = user data['user_executions'] = Execution.get_inline_by_user(user.id) return render(request, 'page/profile.html', data)
def executions_inline(self): from task.models import Execution return Execution.get_inline_by_environment(self.id)
def executions_inline(self): from task.models import Execution return Execution.get_inline_by_application(self.id)
def profile_page(request, user_id): data = get_common_page_data(request) user = get_object_or_404(User, pk=user_id) data['user'] = user data['user_executions'] = Execution.get_inline_by_user(user.id) return render(request, 'page/profile.html', data)