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
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
2 matches
Mail list logo