On Sun, Nov 1, 2009 at 6:48 AM, Daniele Procida <dani...@apple-juice.co.uk>wrote:
> > Every example discussing inline admin objects invovles (naturally) > models that are related to one another, for example, a books model > placed inline on an authors model admin: > > <http://docs.djangoproject.com/en/dev/ref/contrib/admin/ > #inlinemodeladmin-objects<http://docs.djangoproject.com/en/dev/ref/contrib/admin/%0A#inlinemodeladmin-objects> > > > > But what if there were no relation? How does the admin know which inline > items belong to it? > > You can't list an unrelated model inline with another. I believe you'll get an error about no ForeignKey pointing to the parent model existing in the one you are trying to inline. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---