I wanted to bump this up, because if there is no solution I think this
is an issue which needs to be rectified before it is merged to trunk.
As Felix noted, without core=True support, anything listed as in-line
*has to be created when you create the parent object. e.g. if a Pizza
can have 1+ toppings, and the Topping name is a required field, and 3
Toppings fields are shown inline on Pizza creation, then *all three*
have to be used, otherwise validation errors occur on Pizza.

In the old django admin, this is not an issue with the Core fields,
which identify what fields flag a field as "user is trying to be
create me inline".

(I apologise if this should be added as a bug to track etc instead of
here. I am new to using a django branch, and I'm unsure on the policy
on what I should be reporting. By looking in track, it seems that the
current status of newforms-admin is very close to being merged with
trunk (only a dozen or so minor issues listed as deal-breakers).
However after a few days use, I have found various large issues, or at
least undocumented backwards-incompatabilities. For example, this
issue 
http://groups.google.com/group/django-users/browse_thread/thread/f889fce3e854257e#
I posted in django users regarding one-to-one fields.)

On Jan 25, 8:47 am, James T <[EMAIL PROTECTED]> wrote:
> Felix,
>
> > Inline objects now have a 'delete' checkbox which is used for removing
> > objects.
>
> Oh yeah! Well that answers the delete question, thanks.
>
> > I believe that the usual admin rules apply for creating models i.e.
> > all fields without blank=True will be required, otherwise you'll get
> > validation errors.
>
> I see, however there's still a feature of core=True which I can't seem
> to find: if you left the core field blank the related record wouldn't
> get created.
>
> As it is I've set blank=True on all the inline model's fields.
> However, each time I save the parent object 3 blank related objects
> are being created (as I have extra=3 set).
>
> Is there a way around this problem?
>
> James
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to