On 9/2/07, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > > Hi there! > > I'd like to obtain a range of possible values out of the database. So, > if for a certain field, the values in the database are [3,7,5,1,8,12,6], > I'd like to push those into a dropdown. No problem with the dropdown > part. But how do I manage to get such a list? And what about sorting it? >
Take a loot at the values() method: http://www.djangoproject.com/documentation/db-api/#values-fields Regards, -- Ramiro Morales --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---