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.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to