Django modify request.POST
I found an error about trying to change request.POST['xxxx'].
After googling i get an answer...
# copy queryset to q for mutatable purpose
q = request.POST.copy()
q.update({'xxxx': you value})
# then use q instead request.POST
:) i'm not sure but it should give a correct result 99% (thk wrong (demigod))
After googling i get an answer...
# copy queryset to q for mutatable purpose
q = request.POST.copy()
q.update({'xxxx': you value})
# then use q instead request.POST
:) i'm not sure but it should give a correct result 99% (thk wrong (demigod))
Comments
Post a Comment