def entity_putao_card_info(request, template_name): objs = PtCard.objects.all() ptlist = [[i.id, i.name] for i in objs] return report_render(request, template_name, { 'ptlist': ptlist, }, context_instance=RequestContext(request))
def modify_pwd(request, template_name): if request.method == 'POST': form = PwdForm(request.POST) if form.is_valid(): request.user.set_password(form.cleaned_data["password"]) request.user.save() return HttpResponseRedirect(request.GET.get("next", u"/")) else: form = PwdForm() return report_render(request, template_name, {"errors": form.errors}, context_instance=RequestContext(request))
def phone_fee_goods_management(request, template_name): cp_names = get_pf_cp() carriers = get_pf_carrier() pf_management_table_columns = get_pf_management_table_columns() provinces = get_pf_province() my_app = request.GET.get('app', '-1') return report_render(request, template_name, { 'app': my_app, "provinces": provinces, "cp_names": cp_names, "carriers": carriers, "table_columns": pf_management_table_columns, }, context_instance=RequestContext(request))
def shelves_index(request, template_name): pass return report_render(request, template_name, context_instance=RequestContext(request))
def putao_card_edit(request, template_name): return report_render(request, template_name, {}, context_instance=RequestContext(request))