def post2locals(dict=locals(),func=None):
for k,v in request.POST.iterallitems():
dict["_"+k]=v
if func is not None and callable(func):
dict["_"+k]=func(v)
for k,v in request.POST.iterallitems():
dict["_"+k]=v
if func is not None and callable(func):
dict["_"+k]=func(v)

浙公网安备 33010602011771号