Re: Primary key in queryset even when using only()

2010-03-22 Thread Kevin Renskers
Thank you very much, this works perfectly! On Mar 22, 12:01 pm, bruno desthuilliers wrote: > On 22 mar, 11:08, Kevin Renskers wrote: > > > Hi, > > > I am using a combination of the only() and distinct() functions on a > > model to get the unique values of one column. Sadly, the only() > > functi

Re: Primary key in queryset even when using only()

2010-03-22 Thread bruno desthuilliers
On 22 mar, 11:08, Kevin Renskers wrote: > Hi, > > I am using a combination of the only() and distinct() functions on a > model to get the unique values of one column. Sadly, the only() > function also includes the primary key (even though I only give one > column name), which has the effect that

Primary key in queryset even when using only()

2010-03-22 Thread Kevin Renskers
Hi, I am using a combination of the only() and distinct() functions on a model to get the unique values of one column. Sadly, the only() function also includes the primary key (even though I only give one column name), which has the effect that all rows are seen as unique. This is the result I wa