I'll do. Thanks :-) W dniu 31 marca 2009 18:12 użytkownik Daniel Roseman <roseman.dan...@googlemail.com> napisał: > > On Mar 31, 4:54 pm, Filip Gruszczyński <grusz...@gmail.com> 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 names first_name, last_name, etc. and be able to >> retrieve those values from an instance. Is this possible? >> >> -- >> Filip Gruszczyński > > Look at the various things under ._meta, especially > UserProfile._meta.fields. > -- > DR. > > >
-- Filip Gruszczyński --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---