Re: Two-to-Many Mapping between Models in Django ORM

2015-07-30 Thread Rich Lewis
Hi Tom, That was approximately what I was planning to do, I shall do some experimenting to see if I can do any more. I was just wondering if there was a clever feature for this sort of thing, as ORMs seem pretty magic already! Thanks, Rich On Thursday, 30 July 2015 17:15:40 UTC+1, Tom Evans

Re: Two-to-Many Mapping between Models in Django ORM

2015-07-30 Thread Rich Lewis
Oops sorry I meant every B instance can have multiple A instances. Sorry! On Thursday, 30 July 2015 16:21:37 UTC+1, monoBOT monoBOT wrote: > > > 2015-07-30 16:08 GMT+01:00 Rich Lewis : > >> There are precisely 2 B instances associated with each A instance. Each >> A

Re: Two-to-Many Mapping between Models in Django ORM

2015-07-30 Thread 'Tom Evans' via Django users
On Thu, Jul 30, 2015 at 4:08 PM, Rich Lewis wrote: > Dear All, > > I'm new to the Django ORM, and quite new to ORMs in general. I have two > models (lets call them A and B) between which I have an interesting mapping. > There are precisely 2 B instances associated with each

Re: Two-to-Many Mapping between Models in Django ORM

2015-07-30 Thread monoBOT
2015-07-30 16:08 GMT+01:00 Rich Lewis : > There are precisely 2 B instances associated with each A instance. Each A > instance can have many B instances Isnt that a contradiction? -- *monoBOT* Visite mi sitio(Visit my site): monobotsoft.es/blog/ -- You received this

Two-to-Many Mapping between Models in Django ORM

2015-07-30 Thread Rich Lewis
Dear All, I'm new to the Django ORM, and quite new to ORMs in general. I have two models (lets call them A and B) between which I have an interesting mapping. There are precisely 2 B instances associated with each A instance. Each A instance can have many B instances. The order of Bs are