Re: Django ForeignKey versus ManyToManyField

2013-02-07 Thread Huu Da Tran
On Wednesday, February 6, 2013 1:39:30 AM UTC-5, vijay shanker wrote: > I have two models, a Customer model and a WishListItem model (which stores > products). I have option of either having a ManyToManyField in Customer to > WishListItem, or I can have a customer ForeignKey to customer for

Re: Django ForeignKey versus ManyToManyField

2013-02-06 Thread Adam Mesha
On Wed, Feb 6, 2013 at 8:48 AM, Daniel Roseman wrote: > On Tuesday, 5 February 2013 22:39:30 UTC-8, vijay shanker wrote: > >> Hi >> I have two models, a Customer model and a WishListItem model (which >> stores products). I have option of either having a ManyToManyField in

Re: Django ForeignKey versus ManyToManyField

2013-02-05 Thread Daniel Roseman
On Tuesday, 5 February 2013 22:39:30 UTC-8, vijay shanker wrote: > Hi > I have two models, a Customer model and a WishListItem model (which stores > products). I have option of either having a ManyToManyField in Customer to > WishListItem, or I can have a customer ForeignKey to customer for

Django ForeignKey versus ManyToManyField

2013-02-05 Thread vijay shanker
Hi I have two models, a Customer model and a WishListItem model (which stores products). I have option of either having a ManyToManyField in Customer to WishListItem, or I can have a customer ForeignKey to customer for each WishListItem. Which one will be more efficient ? Thanks -- You