I have 2 models say A and B, B has A has a foreign key reference to A.
There is a model form created for mode B called as BForm. Now If i
create instance of BForm and display it in a page, foreign key field
appears as a drop down choice box in the form. Instead of this if i
set instance of B to BForm before displaying it, it shows all
validation errors also.

I want to do something like this - pass unbound BForm to display, when
i get response, create form from request.POST and instance of B.
However if i do this and then check if form is valid, it shows me
error. Can someone please guide me on how I can correct this? I don't
want to display the multiple choice dropdown in form display, but can
i display it like hidden input variable or something?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to