Re: multi-table inheritance and modification of OneToOneField options

2009-08-07 Thread Malcolm Tredinnick
On Fri, 2009-08-07 at 00:30 -0700, Jan Ostrochovsky wrote: > Thank you, Malcolm. > > In fact, our current design was, as you recommended: > > Subject ---one-to-one-null-false--- Address ---one-to-one-null-true--- > Payment (Invoice) > > I want to use generic views and to join Subject+Address

Re: multi-table inheritance and modification of OneToOneField options

2009-08-07 Thread Jan Ostrochovsky
Thank you, Malcolm. In fact, our current design was, as you recommended: Subject ---one-to-one-null-false--- Address ---one-to-one-null-true--- Payment (Invoice) I want to use generic views and to join Subject+Address in the same form, and model inheritance seemed to me as most straightforward

Re: multi-table inheritance and modification of OneToOneField options

2009-08-06 Thread Malcolm Tredinnick
On Thu, 2009-08-06 at 07:15 -0700, Jan Ostrochovsky wrote: > Hello, > > http://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-inheritance > says: > The inheritance relationship introduces links between the child model > and each of its parents (via an automatically-created

multi-table inheritance and modification of OneToOneField options

2009-08-06 Thread Jan Ostrochovsky
Hello, http://docs.djangoproject.com/en/dev/topics/db/models/#multi-table-inheritance says: The inheritance relationship introduces links between the child model and each of its parents (via an automatically-created OneToOneField).