python - render() takes exactly 1 argument (2 given) in Django error -
form1 = paypalpaymentsform(initial=paypal_dict) print form1 context = {"form1": form1.render(paypal_dict['amount']),} print context return render_to_response('choose_plan.html',context) this sends context html showing error now.
render() takes 1 argument (2 given) i'm confused why.
because render function in object form1, , expects self argument. since pass argument function in call becomes second argument.
Comments
Post a Comment