Re: One-to-One vs direct assignation

2008-05-19 Thread bcurtu
Thanks, really well explained. On 19 mayo, 19:43, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > On May 19, 1:29 pm, bcurtu <[EMAIL PROTECTED]> wrote: > > > Thanks Rajesh, > > > The actual question is what the difference is between those 2 > > definitions, between a OntToOne and an instance relations

Re: One-to-One vs direct assignation

2008-05-19 Thread Rajesh Dhawan
On May 19, 1:29 pm, bcurtu <[EMAIL PROTECTED]> wrote: > Thanks Rajesh, > > The actual question is what the difference is between those 2 > definitions, between a OntToOne and an instance relationship? A OneToOneField in a model class implies that Django will create a database-level Foreign Key

Re: One-to-One vs direct assignation

2008-05-19 Thread bcurtu
Thanks Rajesh, The actual question is what the difference is between those 2 definitions, between a OntToOne and an instance relationship? Cheers! On 19 mayo, 16:22, Rajesh Dhawan <[EMAIL PROTECTED]> wrote: > Hi, > > On May 18, 12:49 pm, bcurtu <[EMAIL PROTECTED]> wrote: > > > Hi, > > > What's

Re: One-to-One vs direct assignation

2008-05-19 Thread Rajesh Dhawan
Hi, On May 18, 12:49 pm, bcurtu <[EMAIL PROTECTED]> wrote: > Hi, > > What's the difference between: > > class Other(models.Model): > ins=Instrument() > > class Other2(models.Model): > ins=models.OneToOneField(Instrument) > > How do I define Instrument in order the fist class to be valid?