Wow. Thanks a lot- It works pretty well exactly the way I wanted. :) On 5월27일, 오후6시15분, EL AATIFI Sidi Mohamed <[EMAIL PROTECTED]> wrote: > > " > > profile_fields = "email email_backup brother sister".split() > > for key in profile_fields: > > request.user.get_profile().__getattr__(key) > > " > > you can try this: > " > > profile_fields = "email email_backup brother sister".split() > for key in profile_fields: > eval('request.user.get_profile().%s' % key) > > "
--~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---