Re: (1242, 'Subquery returns more than 1 row')

2013-04-01 Thread Satinderpal Singh
ment,} > > > I hope this might solve your problem. Thanks Siddharth, for the explanation. > > > > > > On Mon, Apr 1, 2013 at 2:51 AM, Satinderpal Singh > wrote: >> >> I have the following error in my project >> >> (1242, 'Subquery retur

Re: (1242, 'Subquery returns more than 1 row')

2013-04-01 Thread Siddharth Ghumre
Head, 'organisation':organisation,'department':department,} I hope this might solve your problem. -Siddharth On Mon, Apr 1, 2013 at 2:51 AM, Satinderpal Singh < satinder.goray...@gmail.com> wrote: > I have the following error in my project > > (1242, 'S

(1242, 'Subquery returns more than 1 row')

2013-03-31 Thread Satinderpal Singh
I have the following error in my project (1242, 'Subquery returns more than 1 row') my views are as given below def result_cube(request): Id = Cube.objects.aggregate(Max('Report_id')) ID = Id['Report_id__max'] cubee = Cube.objects.fil