On Dec 16, 1:01 pm, "Phil Davis" <[EMAIL PROTECTED]> wrote:
>Try:
>
> app_fields = []
> for f in app._meta.fields:
>    app_fields.append(
>      {
>         'label' : f.verbose_name,
>        'value': getattr(app, f.name),
>     }
>
> Works for me on Boolean fields.
> 

Thanks, getattr() did the trick and worked on all fields.


--~--~---------~--~----~------------~-------~--~----~
 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to