Re: How to select a single field from database with django QuerySet API?

2009-02-26 Thread marco sedda
Thanks!!! On Feb 26, 10:28 am, Eric Abrahamsen wrote: > On Feb 26, 2009, at 6:23 PM, marco sedda wrote: > > > > > Hi, > >   I want to select a "single" field from a table, i've read the > > QuerySet API reference but i can't find anything to solve my query. > > > Just to

Re: How to select a single field from database with django QuerySet API?

2009-02-26 Thread Eric Abrahamsen
On Feb 26, 2009, at 6:23 PM, marco sedda wrote: > > Hi, > I want to select a "single" field from a table, i've read the > QuerySet API reference but i can't find anything to solve my query. > > Just to explain: > > If i've a table like: > > User > first_name =

Re: How to select a single field from database with django QuerySet API?

2009-02-26 Thread Russell Keith-Magee
On Thu, Feb 26, 2009 at 7:23 PM, marco sedda wrote: > > Hi, >   I want to select a "single" field from a table, i've read the > QuerySet API reference but i can't find anything to solve my query. > > Just to explain: > > If i've a table like: > > User >   first_name =

How to select a single field from database with django QuerySet API?

2009-02-26 Thread marco sedda
Hi, I want to select a "single" field from a table, i've read the QuerySet API reference but i can't find anything to solve my query. Just to explain: If i've a table like: User first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) how i can execute