Ok, so I have multiple users, and they belong to one, or more than one user group(I have 4 groups).
Each group has its own bootstrap card which shows on the HTML page.
How can I show 1,2,3 or more cards, depending on the user group?
If a user is in group1, I want to render card1, but if user is in group1 AND group2, I want to render card1 and card2, etc.
I tried {% if request.user.is_superuser %} and {%if 'group name' in user.groups.all.0.name %}, but that applies well only if a user is in one group.
Thanks.