i have 2 Models(for example): one is Category, have 2 fields: title and slug, the other is Entry with 4 fields: title, time,category(foreign key),content.
now i just want show entry title and category slug, so i use this queryset: e = Entry.objects.all().values('title','category') the benefit is huge content will be omitted which can save database traffic(i considered). but now category.slug is none, how can i get related value of category in this query? (i changed to e = Entry.objects.all().values('title','category').select_related(), the result was same.) thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---