I know this should be straight-forward, but for some reasons I'm not getting the results I want.
This instruction: {{user.profile.role.all}}
in my Django template outputs this:
<QuerySet [<Role: Creator>, <Role: Performer>, <Role: Venue>]>
I'd like to check if a role is within this queryset; so, for instance, if I want to check if a role 'venue' is present, according to what the documentation tells me, I should do:
{% if "Venue" in user.profile.role.all %}
Right? The above-mentioned if
, though, returns false. Why is that?