Re: Creating a model and related models with Inline formsets

2009-07-11 Thread chefsmart

I had posted this on stackoverflow.com and this got answered there.
Follow this link for the solution: -

http://stackoverflow.com/questions/1113047/creating-a-model-and-related-models-with-inline-formsets

On Jul 11, 1:46 am, chefsmart  wrote:
> Hi,
>
> Using the example 
> athttp://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-...
> , I am able to _edit_ objects belonging a particular model (using
> modelforms). I have been trying to follow the same pattern for
> _creating_ new objects using inline formsets, but have been unable to
> clear my head enough to bring out a working view for this purpose.
>
> Using the same example as in the above link, how would I go about
> creating a new instance of an "Author" model together with its related
> "Book" objects?
>
> Regards,
> CM
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Creating a model and related models with Inline formsets

2009-07-10 Thread chefsmart

Hi,

Using the example at 
http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#inline-formsets
, I am able to _edit_ objects belonging a particular model (using
modelforms). I have been trying to follow the same pattern for
_creating_ new objects using inline formsets, but have been unable to
clear my head enough to bring out a working view for this purpose.

Using the same example as in the above link, how would I go about
creating a new instance of an "Author" model together with its related
"Book" objects?

Regards,
CM
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---