Ejemplo n.º 1
0
def submit_view(req):
    name = req.session.get('name', '')
    if not name:
        return HttpResponseRedirect("/login/")
    else:
        context = {'name': name, 'type_list': admins.get_bug_types()}
        return render_to_response("submit.html", context)
Ejemplo n.º 2
0
def submit_view(req):
    name = req.session.get('name', '')
    if not name:
        return HttpResponseRedirect("/login/")
    else:
        context = {'name': name, 'type_list': admins.get_bug_types()}
        return render_to_response("submit.html", context)
Ejemplo n.º 3
0
def manage_system_setting(req):
    end_time = admins.get_end_time()
    publicity_pictures = admins.get_publicity_pictures()
    bug_types = admins.get_bug_types()
    context = {"end_time": end_time.date(), "publicity_pictures": publicity_pictures,
               "bug_types": bug_types}
    return render_to_response("admins/system.html", context)
Ejemplo n.º 4
0
def manage_system_setting(req):
    end_time = admins.get_end_time()
    publicity_pictures = admins.get_publicity_pictures()
    bug_types = admins.get_bug_types()
    context = {
        "end_time": end_time.date(),
        "publicity_pictures": publicity_pictures,
        "bug_types": bug_types
    }
    return render_to_response("admins/system.html", context)