On 5/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is it possible to get a list of just the instance IDs of a specific > class, instead of the entire list of objects?
Hey Daniel, Yes, indeed! You're looking for get_values(). For version 0.91 and earlier: http://www.djangoproject.com/documentation/0_91/db_api/#get-values-kwargs For the current trunk (post-magic-removal): http://www.djangoproject.com/documentation/db_api/#values-fields To answer your other question, yes, get_list() fully loads objects into memory. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---