On Tuesday 20 Sep 2005 6:05 pm, Jacob Kaplan-Moss wrote:
> The function you're looking for is ``get_values``::
>
>      >>> from django.models.mymodule import mymodel
>      >>> mymodel.get_values(fields=['name', 'address'],  
> zip__startswith='660')

thanks, that worked, now a new problem arises. how do i do a subselect 
to get the 'name' value of a foreign key field using get_values?

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!

Reply via email to