Re: iterating over fields of a model

2009-03-31 Thread Filip Gruszczyński
I'll do. Thanks :-) W dniu 31 marca 2009 18:12 użytkownik Daniel Roseman napisał: > > On Mar 31, 4:54 pm, Filip Gruszczyński wrote: >> I have a user profile class and I would like to iterate over all >> defined fields and retrieve their values. For example if I had: >> >> class UserProfile: >>

Re: iterating over fields of a model

2009-03-31 Thread Daniel Roseman
On Mar 31, 4:54 pm, Filip Gruszczyński wrote: > I have a user profile class and I would like to iterate over all > defined fields and retrieve their values. For example if I had: > > class UserProfile: >   first_name = CharField(.. >   last_name = CharFiel(.. > > etc. > > I would like to get name