I had already gone through those tutorial, they are really great.

Here is my problem:
At django tutorial it has two tables defined at models, Poll and
Choice, Choice table has a foreign key that refers to Polls table.

When adding Poll questions, I can add choices at the same time which
eventually add records at two tables.
I can add as many choices as I want by clicking at "Add another
Choice".
I would like to have same feature on my form which is outside the
admin site. How can do that ?

Thanks!
Ramesh



On Jul 21, 8:53 am, Alex Robbins <[email protected]>
wrote:
> The ability to make multiple forms of the same type is a 
> formset.http://docs.djangoproject.com/en/1.2/topics/forms/formsets/#topics-fo...
>
> If you want those forms to represent models, then you want a model
> formset.http://docs.djangoproject.com/en/1.2/topics/forms/modelforms/#id1
>
> Hope that helps!
> Alex
>
> On Jul 20, 1:00 pm, Ramesh <[email protected]> wrote:
>
>
>
> > Hi,
>
> > I would like to have inline forms for my project (not admin site) as
> > shown in django tutorials "Writing your first Django app, part 
> > 2",http://docs.djangoproject.com/en/dev/intro/tutorial02/
>
> > Here is the form image 
> > url:http://docs.djangoproject.com/en/dev/_images/admin12.png
>
> > This works fine on my admin site, obviously I followed the tutorial.
>
> > Now I would like to have same kind of inline form which is outside the
> > admin site. How can I do that?
> > I want to add as many field as I want similar to the example shown for
> > poll admin sit.
>
> > Can someone please provide me some idea/resource from where I can
> > start with ?
>
> > Thanks!
> > Ramesh

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to