I would suggest reading up on inline formsets: 
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets
You can also look at this stackoverflow question regarding how to use them 
to create instances, as the docs only talk about editing (and expect you to 
map those idea to creating):
http://stackoverflow.com/questions/1113047/creating-a-model-and-related-models-with-inline-formsets



On Saturday, February 15, 2014 7:13:46 AM UTC-6, ctm7 wrote:
>
> Hello Users,
>
> I am currently developing my get to know django project an Invoicing 
> application. I currently developing my forms and I'm trying to figure out 
> how to make a form that allows you to create an invoice *and* at the same 
> time make invoice lines. My invoice line model has a foreign key relation 
> to my invoice model.
>
> This *is* possible within the Admin interface and is as simple as adding 
> an inline view to my InvoiceAdmin model.
>
> Any suggestion for which direction to go in?
>
> Many thanks,
>
> T
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f1f92d85-ac33-46e2-951b-931b7d6f7aca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to