On Wed, Mar 27, 2013 at 6:52 AM, Tom Evans <tevans...@googlemail.com> wrote: > On Wed, Mar 27, 2013 at 12:38 PM, Larry Martell <larry.mart...@gmail.com> > wrote: >> Ignore my last message - I was seriously sleep deprive3d when I made >> it. But my original question remains - how can I use values_list and >> extra on same queryset? > > It just seems to WFM: > > Foo.objects.all().extra(select={'wibble': '1'}).values_list('pk', 'wibble') > [(611L, 1L), (612L, 1L), (613L, 1L), (614L, 1L), (615L, 1L), (616L, 1L)] > > Works fine on my 1.3 and 1.4 sites, I don't have a 1.5 site handy..
Here's a very simple example showing it's not working for me (Pdb) CST.objects.all().extra(select={'ep': 1}).values_list('image_measurer_id') [(86456L,), (86454L,), (86452L,), (86450L,), (86448L,), (86446L,), (86444L,), (86442L,), (86440L,), (86438L,), (86436L,), (86434L,), (86432L,), (86430L,), (86428L,), (86426L,), (86424L,), (86422L,), (86420L,), (86418L,), '...(remaining elements truncated)...'] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.