Okay I got it by using QuerySet's API extra() method
http://docs.djangoproject.com/en/dev/ref/models/querysets/
All I wanted after all is to get some fields from one model, get some fields
from some other model (which is related to the first model through a
foreignkey), and show that through
On Mon, 2009-03-09 at 10:31:16 PM, Malcolm Tredinnick wrote:
>> Is it possible in a django view, to take objects from 2 different
>> models, which are related one to the other through a ForeignKey
>> (primary key of one model is foreign key in the other model), make
>> something similar to an SQL
On Mon, 2009-03-09 at 18:04 -0700, Mario Zorz wrote:
> Hi all
>
> Thanks in advance to whomever reads this :)
>
> Is it possible in a django view, to take objects from 2 different
> models, which are related one to the other through a ForeignKey
> (primary key of one model is foreign key in the
Hi all
Thanks in advance to whomever reads this :)
Is it possible in a django view, to take objects from 2 different models, which
are related one to the other through a ForeignKey (primary key of one model is
foreign key in the other model), make something similar to an SQL JOIN and have
the
4 matches
Mail list logo