You should be able to access it in a template from an instance of a model
that uses it via:
model_instance_object.ROLES

but if you just want to access from the template generically, then yes, you
need to pass it to the template.
hth,
-richard



On 6/20/08, diggs <[EMAIL PROTECTED]> wrote:
>
>
> Thank you. Now I'm realizing that I didn't ask my question correctly.
> I want to access ROLES from within a template. Do I have to pass it to
> the template each time I need it or can I access it directly somehow?
>
> On Jun 20, 2:47 pm, Juanjo Conti <[EMAIL PROTECTED]> wrote:
> > In views.py:
> >
> > from models import ROLES
> >
> > Greets,
> >
> > Juanjo
> > --
> > mi blog:http://www.juanjoconti.com.ar
> >
>

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