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

2015-07-30 Thread Rich Lewis
wrote: > > 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. > &g

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 >>

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 i