is probably the hard part though.
>
> -James
> On Aug 20, 2015 9:12 PM, "Shekar Tippur" >
> wrote:
>
>> Hello,
>>
>> I am looking for a model/serializer/view for a self join. I can have
>> nested paernt child relationship.
>>
>> The one
er is probably the hard part though.
-James
On Aug 20, 2015 9:12 PM, "Shekar Tippur" wrote:
> Hello,
>
> I am looking for a model/serializer/view for a self join. I can have
> nested paernt child relationship.
>
> The one I am trying:
>
> model:
>
> c
Hello,
I am looking for a model/serializer/view for a self join. I can have nested
paernt child relationship.
The one I am trying:
model:
class ParentChild(models.Model):
parent=models.CharField(max_length=100, blank=False, default='', unique
=True)
child=models.Foreig
On Fri, Mar 12, 2010 at 5:54 PM, jrs wrote:
> I'm trying, without a great deal of success, to perform a simple self
> join using the django orm. I'm pretty sure the F() function is not
> the answer. I believe this only allows you to compare two field
> within the same
I see nothing on this page that is in the slightest bit related to my
> > question... Does anyone know if there is a way in the django orm to
> > accomplish my query above?
>
> > Thanks.
>
> As I explained, there's nothing different in a self-join than with any
> o
On Mar 15, 1:40 pm, jrs wrote:
> I see nothing on this page that is in the slightest bit related to my
> question... Does anyone know if there is a way in the django orm to
> accomplish my query above?
>
> Thanks.
As I explained, there's nothing different in a self-join than
I see nothing on this page that is in the slightest bit related to my
question... Does anyone know if there is a way in the django orm to
accomplish my query above?
Thanks.
On Mar 13, 4:17 am, Daniel Roseman wrote:
> On Mar 12, 10:54 pm, jrs wrote:
>
>
>
> > I'm trying, without a great deal of
On Mar 12, 10:54 pm, jrs wrote:
> I'm trying, without a great deal of success, to perform a simple self
> join using the django orm. I'm pretty sure the F() function is not
> the answer. I believe this only allows you to compare two field
> within the same model instance,
I'm trying, without a great deal of success, to perform a simple self
join using the django orm. I'm pretty sure the F() function is not
the answer. I believe this only allows you to compare two field
within the same model instance, not to compare fields within 2
instances of the same
Just started in the last few days with django and am having a little
trouble with the orm. Is it possible to do a self join with an
aggregate? My query looks like the following (apologies for the
generic names):
SELECT t.field1, c.field2, c.field3, t.field4, t.field5, (t.field4/
t.field5) as
rs-can-reference-fields-on-the-model
>
> On Mar 5, 1:46 pm, Adam Nelson wrote:
> > Is it possible to do a self join using QuerySet?
> >
> > I'm looking to simulate a query like this:
> >
> > SELECT b.created_on, SUM(a.vote)
> > FROM votes a JOIN votes
wrote:
> Is it possible to do a self join using QuerySet?
>
> I'm looking to simulate a query like this:
>
> SELECT b.created_on, SUM(a.vote)
> FROM votes a JOIN votes b ON a.created_on <= b.created_on
> WHERE a.object_id = 1
> GROUP BY 1
>
> Which finds the sums
Is it possible to do a self join using QuerySet?
I'm looking to simulate a query like this:
SELECT b.created_on, SUM(a.vote)
FROM votes a JOIN votes b ON a.created_on <= b.created_on
WHERE a.object_id = 1
GROUP BY 1
Which finds the sums for votes before the datetime of e
13 matches
Mail list logo