Re: OneToOneField relation and bidirectional StackedInline behavior in contrib.admin context

2009-01-28 Thread peschler
Hi, actually I am facing the same problem here. I did quite a search on the subject and I found no real solution to this use case. Here are my models: --- contacts/models.py: class Address(models.Model): street = models.CharField(max_length=255) city = models.CharField(max_le

Re: OneToOneField relation and bidirectional StackedInline behavior in contrib.admin context

2009-01-09 Thread Malcolm Tredinnick
On Fri, 2009-01-09 at 05:33 -0800, klein.steph...@gmail.com wrote: [...] > This error is understandable because actually ClassA haven't > ForeignKey but the relation > between ClassA and ClassB is OneToOneField then ClassA know how to > access to his classb object. > > This behavior is one missin

OneToOneField relation and bidirectional StackedInline behavior in contrib.admin context

2009-01-09 Thread klein.steph...@gmail.com
Hi, First, I begin with one example : I've this in test1/models.py from django.db import models class ClassA(models.Model): foo = models.CharField("Foo", max_length = 100) class ClassB(models.Model): bar = models.CharField("bar", max_length = 100) rel_a =