But the admin app does - it defines the labels from the attribute
names and just puts them all in a table or list.

How does one do that?  Analogous to iterating through a list of
objects, is it possible to iterate through the attributes of a single
object?

On Jul 4, 5:32 pm, Rajesh D <rajesh.dha...@gmail.com> wrote:
> On Jul 4, 6:30 pm, TechnicalBard <rodwe...@gmail.com> wrote:
>
> > Is there a way to pass an object to the template and have the template
> > handle all of the attributes without hardcoding them into the
> > template?
>
> Depends on what you mean by "handle". The template won't by itself
> know the markup with which you want to wrap your object's various
> attributes.
>
> -RD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to