But _meta starts with an underscore, so you can't use it in the template, right? I'm still using Django 1.0.2, so I don't know if that has changed along the way.
- Paulo On Thu, Aug 5, 2010 at 8:52 AM, Daniel Roseman <dan...@roseman.org.uk>wrote: > On Aug 4, 7:27 pm, "David.D" <dengyuanzh...@gmail.com> wrote: > > I just wonder if there's some way requires writing nothing. Just like > > an attribute. > > > > thanks. > > Yes, there is. Each model and model instance object has a _meta > attribute, which contains information about the model - > the .app_label, object_name and .verbose_name will probably be useful > to you. > -- > DR. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.