示例#1
0
def edit_problem_statement (request, problem_code):
    problem = get_object_or_404(Problem, code = problem_code)
    return edit_page (request, 
                      page_url = problem.wiki_page.url, 
                      widgets = {
                            'is_problem' : True,
                            'problem' : problem,
                      }
                     )
示例#2
0
def edit_contest_statement (request, contest_code):
    contest = get_object_or_404(Contest, code = contest_code)
    return edit_page (request, 
                      page_url = contest.wiki_page.url, 
                      widgets = {
                            'is_contest' : True,
                            'contest' : contest,
                      }
                     )
示例#3
0
def edit_user_description (request, user_name):
    user = get_object_or_404(UserProfile, username = user_name)
    return edit_page (request, 
                      page_url = user.wiki_page.url, 
                      widgets = {
                            'is_user' : True, 
                            'user' : user ,
                      }
                     )