title: django {% if user.groups == 'FC' %} doens't work
body: <p>I'm making a website using django. </p>
  
  <p>{% if user.groups == 'FC' %} doesn't work in my template.I have groups like that.</p>
  
  <p><a href="https://i.stack.imgur.com/RDO1X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RDO1X.png" alt="my user group"></a></p>
  
  <p>For example, one of my users(username is 'hong) belongs to 'FC' group as you see below.
     <a href="https://i.stack.imgur.com/m1roG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m1roG.png" alt="enter image description here"></a></p>
  
  <p>But, </p>
  
  <pre><code>{% if user.groups == 'FC' %}
        &lt;li&gt;&lt;a href="{% url 'register' %}"&gt;register form&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="{% url 'mypage' %}"&gt;fc's my page&lt;/a&gt;&lt;/li&gt;
  {% else %}
   &lt;li&gt;&lt;a href="{% url 'PT_mypage' %}"&gt;fitness' my page&lt;/a&gt;&lt;/li&gt;
  {% endif %}
  </code></pre>
  
  <p>if user.groups == ' '  doesn't work. </p>
  
  <p>How I check the users' group? I have to distinguish the users by groups.</p>