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)
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)
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)