How can I send variables to my forms on init in Django?
- by blackrobot
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.