How can I send variables to my forms on init in Django?
Posted
by blackrobot
on Stack Overflow
See other posts from Stack Overflow
or by blackrobot
Published on 2010-05-12T20:11:26Z
Indexed on
2010/05/12
20:14 UTC
Read the original article
Hit count: 181
django
I want to send variables to a form in my Django project so that my form's save method associates the correct object with the foreign key in the model.
I tried setting it in the init method, but that doesn't seem to work.
© Stack Overflow or respective owner