[Following up to myself to post about my resolution]

I resolved the issue by:

1. setting editable=true for the foo class

2. hiding the bar field in the rendered HTML with:

FooForm.base_fields['bar'] = forms.CharField(widget=HiddenInput(),
initial=bar_id)

3. replacing form.save() with:

n = form.save(commit=False)
n.bar_id = bar_id
n.save()

I don't fully understand what's going on in #3, but it does what I
need it to do now. Thanks to Mike and Roberto for their input.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to