I have a page where I want to display two Form objects, and that's
working fine. I have three Model objects that map to these two Form
objects, and I was hoping to avoid showing the relationships that are
redundant.

What's the best way to do this?

So far, if I do:

del DoseForm.base_fields['appointment']
del DoseForm.base_fields['order']

It allows me to get a form without the appointment and order fields.
But when it comes back to post, I call:

dose = dose_form.save(commit=False)

and get:

Exception Type:         KeyError
Exception Value:        'order'
Exception Location:     c:\python\python24\Lib\site-packages\django
\newforms\models.py in save_instance, line 36

So my Dose object is expecting an Order parameter, which I've blown
away from the form.

Thanks for any help. I'm lovin Django!
Steve


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