On 9/14/07, Ludvig Ericson <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I can't seem to understand how to do this with newforms 'properly':
>
> 1) A base model, call it Apartment.
> 2) A model called Person, who lives in an Apartment, i.e., a
> ForeignKey(Apartment)
>
> Now, what I want to do is to get a form like the admin has with
> edit_inline, so something like:
>
> person_form_instances = [person_form("pf%d" % i) for i in xrange(5)]
>
> Which sort of works, but it doesn't really give me the same options and
> so forth that I get with the admin's interface.
This is implemented in the newforms-admin branch as 'formsets'. The
newforms-admin branch is getting reasonably mature now - I'm using it
on a project I'm developing right now. Hopefully today's sprint will
improve things even more.
Yours,
Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---