I think this is what you need:
http://docs.djangoproject.com/en/dev/ref/models/querysets/#only-fields

On Aug 22, 1:43 pm, Hanpan <[email protected]> wrote:
> Am I right in saying that .values() won't span across joins though? I
> have a many-to-many field which I would like to retrieve somehow.
>
> On Aug 22, 12:18 pm, Tim Chase <[email protected]> wrote:
>
> > > How do I tell Django which fields to select from my database? It seems
> > > to always use SELECT * FROM, which isn't ideal since I don't need all
> > > the extra data for my project listing page, just the 'title' and
> > > 'slug' field.
>
> > read up on the .values() method.
>
> > -tkc
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to