ElGranAzul wrote:
> Hi all.
>
> I'm creating a custom template and I'm following the instructions in
> http://www.pointy-stick.com/blog/2006/07/03/django-tips-forms-multiple-inline-objects/.
> Al works good, but when i modify the main model, the children are
> duplicated.
You're probably don't include {{ child.id }} somewhere in a child loop.
This is rendered as a hidden input and won't affect form's layout. But
when a record don't have an id Django's manipulator considers it as a
new record.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---