You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hello!
I have a form including a field: veh_id1 = models.ForeignKey(Vehicles)) that is being rendered on the template as dropdown list.
Now I want according to the user's choice in that list some other fields of my form to be auto-completed and displayed on the template before the form submission.
I guess that I should use ajax for that. But I really don't know how I will access that user's choice in veh_id1 since it's not rendered as a classic html select and I don't have id for each choice etc. Sry if my question is dump but I'm new to all that and now I'm stuck.
Dmitry Zimnukhov
unread,
Jul 24, 2012, 10:02:03 AM7/24/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
First you say that the field "is being rendered on the template as
dropdown list", and then "it's not rendered as a classic html select"
How is it rendered? Isn't html select a drop-down list?
By the way models.ForeignKey is a model field, not a form field. How
is your form defined?