On May 4, 4:33 pm, Bob Dively <[EMAIL PROTECTED]> wrote: > I'm struggling to understand newforms. Specifically, when creating a > new record, I can't figure out how to populate the new record's parent > foreign key value. For example (leaving out imports and so forth):
I've just become further confused by looking at the html source, which has the bar_id value in a hidden form field. Why would this value not be written to the database with newforms save() method? The user- entered values in the visible form fields are written successfully, but the resulting record has a NULL value in the bar_id column. (Sorry, I should obviously have looked at the html source before posting. Like, I said, I'm a definite Django n00b.) --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---