Re: Passing hidden foreign key to form as initial value

March 31, 2010
By

Final approach: in the forms.py excluded the courses foreign key field in models.py made courses blank and nullable didn’t pass any initial values to the form in the view, saved the form like this: item = Courses.objects.get(pk=whatever …

Here is the original: 
Re: Passing hidden foreign key to form as initial value

Tags: , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*