You could do this pretty easily using your own forms ( not NewForms and not Add/Change Manipulators ) along with the Django DB objects.
It's pretty easy to do a CustomChangeManipulator with fields from two tables if it's just a one to one relationship, but for M2M, I usually either roll my own or I display a list of the rentals with an 'edit' link next to each item in the list. On May 20, 2:19 pm, David Priest <[EMAIL PROTECTED]> wrote: > I believe I have performed exhaustive research on the challenge of > creating forms that incorporate fields from multiple tables. I have > not found *any* comprehensive, best-practices examples of this problem. > > It really quite surprises me, as any web application of even moderate > complexity requires multiple tables. > > Anyway, I think everyone (and especially all us n00bs) would *really* > appreciate a good bit of demonstration code for the following sort of > scenario: > > class Customer(models.Model): > name = models.CharField() > phone = models.PhoneNumber() > > class Rentals(models.Model): > title = models.CharField() > serial = models.Integer() > rented_to = models.ForeignKey(Customer) > rental_due = models.DateField() > > The Form should display the customer's name, phone number, and the > movies the customer has rented, but *not* the date they're due > ('cause I'd like this problem to represent real-world problems, where > one doesn't necessarily display all the fields for editing). > > I've been battling at this for days, reading a lot of newsposts and > websites, and I've come up with bupkiss. It is extraordinarily > frustrating. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---