How to use DAL for this query

2014-05-18 Thread Nino Cocchiarella
I'm working with Django... I am used to writing raw SQL queries, so the DAL is a little comfusing for me. But, apperantly, its the thing to do. Anyway, come anyone point me in the right direction on how to translate this raw query into the Django DAL -- SELECT * FROM rep_musicalwork, rep_compo

Re: How to use DAL for this query

2014-05-18 Thread Nino Cocchiarella
Solved by using this: works = MusicalWork.objects.select_related('composer').all() And accessing it with this str(item.title) + ' -- ' + str(item.composer.last_name) On Sunday, May 18, 2014 10:14:30 AM UTC-4, Nino Cocchiarella wrote: > > I'm working with Django... I am used to writing raw SQL q