Hi Malcom The values_list() returns a list of tuples whereas I am looking for a simple list of the values
On Mon, Aug 3, 2009 at 10:48 AM, Malcolm Tredinnick < malc...@pointy-stick.com> wrote: > > On Sun, 2009-08-02 at 21:59 -0700, bvemu wrote: > [...] > > Is there a django way of retrieving only the values as a list and not > > the fieldname > > Have a look at the values_list() method. That does what you are after. > > > http://docs.djangoproject.com/en/dev/ref/models/querysets/#values-list-fields > > Regards, > Malcolm > > > > > -- Regards Subramanyam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---