On 2007-12-17 11:34:47 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> said:
> > Dear all, > > I have two object : > > 1. contacts > 2. phone number > > contacts and phone number is linked via a primary key foreign key > connection with the primary key in contacts. The way the admin > interface is done now is that the contact object has an add function > and the contacts too has an add function. My question is instead of > having the phone object seperate can i add the adding of phone numbers > from the contacts admin form ? Yes, you can. This is called edit_inline in Django. Check out [1] and read that section. It will show you how to accomplish edit_inline. [1]: http://www.djangoproject.com/documentation/model-api/#many-to-one-relationships Thanks. -- Brian Rosner http://oebfare.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---