On Mon, 2006-06-19 at 23:12 -0700, hotani wrote: > According to the docs, this should return a dictionary: > > model.objects.filter(id=5).values()
Not quite: it returns something that acts like a list of dictionaries, since there is no guarantee that your QuerySet will always contain a single object. > However, none of the normal dictionary methods work on it, like say > "keys()." In light of the above, try model.objects.filter(id=5).values()[0].keys() Best wishes, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---