I have two models related by a OneToOneField as in the code below, but when I create an inline to display on the admin form for the 'parent' object, I get forms for two of the related objects instead of one (ie an instance of A and two instanced of B). Can anyone suggest why this would be the case? I'm running SVN-12969.
Thanks, Wally. -- models.py -- class A(models.Model): ... class B(models.Model): ... a = models.OneToOneField(A) -- admin.py -- ... class BInline(admin.StackedInline): model = B class AAdmin(models.ModelAdmin): inlines = [BInline] admin.site.register(A, AAdmin) -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.