Is there a way to get profile information from a userena profile in a template? Is there some sort of variable automatically passed?
E.g: I can get the django user variable like this:
{% if user.is_authenticated %}
Hey {{ user.username }}.
{% endif %}
since this is passed with each request.
Is there a built in way to do the same with a userena profile without passing a profile with each view? Ideally, I'd like to do sth. like this:
{% if user.is_authenticated %}
{% if user.profile.likes_cookies %}
Hey cookiemonster
{% endif %}
{% endif %}