On 8/3/06, cyberco <[EMAIL PROTECTED]> wrote: > > Yes, but I want only one 'submit' button on the html page. This means > that the POST data goes to one 'view' method. How can I first create an > instance of A and then an instance of B (with A's id) with the same > POST data? > > You can put two model's input fields in one form, so as you submit the form, you will get all data of the two model, then using suitable data to create two records.
-- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---