Hi,

1. In the Python code, how can I access various Meta properties of a
model (e.g. verbose_name, etc). At the moment, I do it via
model._meta.verbose_name, but I always get chills down my spine when I
access properties beginning with a single underscore. Is there a
"proper" way?

2. Can someone explain the rationale behind not allowing access to
properties of objects that begin with double underscores in the
template? It worked in 1.02, but with SVN I can't access anything like
object.__class__. I'm merely curious as to why this was restricted. In
one or two cases, life was easier for me when I could do it.

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