On Thu, Feb 5, 2009 at 3:18 PM, John M <retireonc...@gmail.com> wrote:

>
> I tried to find this in the admin code, but was unsuccessful.
>
> If I have a model with a 1-1 relationship, and in my admin.py I
> specify that the 1-1 related model is in an INLINE, I notice that the
> admin interface is smart enough to add a new 1-1 related record when
> necessary.  I'm wondering in the code where they do this, as I'm
> trying to do the same.
>
> Thanks
> >
>
This basically occurs in the inline formset:
http://code.djangoproject.com/browser/django/trunk/django/forms/models.py#L462

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
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 
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