Re: View using 2 models

2009-11-13 Thread bruno desthuilliers
On 12 nov, 13:15, EmileZola wrote: > Well, I missed the point apparently. I was unaware django created > reverse attribute for ForeignKey. http://docs.djangoproject.com/en/dev/ref/models/relations/#ref-models-relations HTH -- You received this message because you are subscribed to the Google

Re: View using 2 models

2009-11-12 Thread EmileZola
Well, I missed the point apparently. I was unaware django created reverse attribute for ForeignKey. Thanks ! On Nov 12, 5:44 am, bruno desthuilliers wrote: > On 12 nov, 07:07, EmileZola wrote: > > > > > Alright, I'm pretty new to Django and I've got this problem I can't > > quite solve. > > > I

Re: View using 2 models

2009-11-12 Thread bruno desthuilliers
On 12 nov, 07:07, EmileZola wrote: > Alright, I'm pretty new to Django and I've got this problem I can't > quite solve. > > I basically have two models, wich I use to put blog articles into > categories. One is a Category and the other is a Subject. So in my > categories I might have ('Programming

Re: View using 2 models

2009-11-12 Thread Dirk Uys
On Thu, Nov 12, 2009 at 8:07 AM, EmileZola wrote: > Alright, I'm pretty new to Django and I've got this problem I can't > quite solve. > > I basically have two models, wich I use to put blog articles into > categories. One is a Category and the other is a Subject. So in my > categories I might ha

View using 2 models

2009-11-12 Thread EmileZola
Alright, I'm pretty new to Django and I've got this problem I can't quite solve. I basically have two models, wich I use to put blog articles into categories. One is a Category and the other is a Subject. So in my categories I might have ('Programming', 'Music', 'Essays') and my subjects are liste