Thank you very much!

On Jul 21, 10:02 am, Alex Robbins <alexander.j.robb...@gmail.com>
wrote:
> You'll have to write your own javascript to add forms dynamically.
> Django doesn't provide front-end javascript.
> Here are some 
> ideas:http://stackoverflow.com/questions/501719/dynamically-adding-a-form-t...
>
> Hope that helps,
> Alex
>
>
>
> On Wed, Jul 21, 2010 at 9:52 AM, Ramesh <basukalaram...@gmail.com> wrote:
> > 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 <alexander.j.robb...@gmail.com>
> > 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 <basukalaram...@gmail.com> 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 django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > django-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/django-users?hl=en.

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

Reply via email to