Re: how to get all the objects in one model that are not foreign keys in another

2007-03-06 Thread Matthew Flanagan
Hi, this ticket http://code.djangoproject.com/ticket/2400 covers this issue and links to discussion about it. On 3/6/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > > > On 06-Mar-07, at 8:55 AM, Malcolm Tredinnick wrote: > > >> > >> how do i get a list of all children who are not in

Re: how to get all the objects in one model that are not foreign keys in another

2007-03-05 Thread Kenneth Gonsalves
On 06-Mar-07, at 8:55 AM, Malcolm Tredinnick wrote: >> >> how do i get a list of all children who are not in Sponsorship? > > I'm pretty sure you can't do this at the moment with only the Django > query functionality. ok - anyway thanks, I thought I was losing my mind and was pretty

Re: how to get all the objects in one model that are not foreign keys in another

2007-03-05 Thread Malcolm Tredinnick
On Mon, 2007-03-05 at 18:12 +0530, Kenneth Gonsalves wrote: > hi, > > I have two models: > > Child(models.Model): > name = CharField > > > Sponsorship(models.Model): > name = CharField > child = ForeignKey(Child) > ... > > how do i get a list of all

Re: how to get all the objects in one model that are not foreign keys in another

2007-03-05 Thread lawgon
would work - but isnt there some djangoistic way of doing it? On Mar 5, 5:42 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > hi, > > I have two models: > > Child(models.Model): > name = CharField > > > Sponsorship(models.Model): > name = CharField > child

Re: how to get all the objects in one model that are not foreign keys in another

2007-03-05 Thread Tim Chase
> I have two models: > > Child(models.Model): > name = CharField > > > Sponsorship(models.Model): > name = CharField > child = ForeignKey(Child) > ... > > how do i get a list of all children who are not in Sponsorship? AFAIK, for any sort of efficiency,

how to get all the objects in one model that are not foreign keys in another

2007-03-05 Thread Kenneth Gonsalves
hi, I have two models: Child(models.Model): name = CharField Sponsorship(models.Model): name = CharField child = ForeignKey(Child) ... how do i get a list of all children who are not in Sponsorship? -- regards kg http://lawgon.livejournal.com