示例#1
0
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)
示例#2
0
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)
示例#3
0
文件: models.py 项目: mahak/gunnery
    def executions_inline(self):
        from task.models import Execution

        return Execution.get_inline_by_environment(self.id)
示例#4
0
文件: models.py 项目: mahak/gunnery
    def executions_inline(self):
        from task.models import Execution

        return Execution.get_inline_by_application(self.id)
示例#5
0
 def executions_inline(self):
     from task.models import Execution
     return Execution.get_inline_by_environment(self.id)
示例#6
0
 def executions_inline(self):
     from task.models import Execution
     return Execution.get_inline_by_application(self.id)
示例#7
0
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)