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
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
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
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?
4 matches
Mail list logo