title: django template comparing data from file executing wrong code path
body: <p>I have a file /tmp/something.txt the contents of the file have the following is just simply a 1</p>
  <p>In my view I have the following</p>
  <pre class="lang-python prettyprint-override"><code>class StrippedView(AccessRequired, TemplateView):
      template_name = 'stripped'
      title = 'stripped' 
  
      def get_context_data(self, **kwargs):
          with open('/tmp/something.txt','r') as file:
              data = file.read()
  
          context = super(stripped, self).get_context_data(**kwargs)
          context['title'] = self.title
          context['something'] = data
  
          return context
  </code></pre>
  
  <p>And here is what I have in my template</p>
  <pre class="lang-html prettyprint-override"><code>&lt;tr&gt;
              &lt;th&gt;
                  Activate
              &lt;/th&gt;
              {% if something == '1' %}
              &lt;td&gt;
                  &lt;a class=&quot;btn btn-warning btn-sm&quot; href=&quot;{% url 'system:stripped' %}&quot;&gt;&lt;b&gt;{% bootstrap_icon 'lock' %} Deactivate&lt;/b&gt;&lt;/a&gt;
              &lt;/td&gt;
              {% else %}
              &lt;td&gt;
                  &lt;a class=&quot;btn btn-primary btn-sm&quot; href=&quot;{% url 'system:stripped' %}&quot;&gt;&lt;b&gt;{% bootstrap_icon 'lock' %} Activate&lt;/b&gt;&lt;/a&gt;
              &lt;/td&gt;
              {% endif %}
          &lt;/tr&gt;
  </code></pre>
  
  <p><strong>So here is what I expect to happen</strong></p>
  <p>When the file has a 1 in it then the first button displays that says activate and if the file has anything else then it will display the Activate button</p>
  <p><strong>What did happen</strong></p>
  <p>Instead what is happening is it is always display the Activate button</p>
  <p><strong>What have I tried</strong></p>
  <p>At first I wanted to know what was actually being returned so I replaced the text of the activate button with the variable like so</p>
  <pre class="lang-python prettyprint-override"><code>&lt;a class=&quot;btn btn-primary btn-sm&quot; href=&quot;{% url 'system:https' %}&quot;&gt;&lt;b&gt;{% bootstrap_icon 'lock' %} {{ something }}&lt;/b&gt;&lt;/a&gt;
  </code></pre>
  
  <p>This shows me that the variable has the right data which is 1</p>
  <p>I have also tried switching between</p>
  <pre class="lang-html prettyprint-override"><code>{% if something == '1' %}
  </code></pre>
  
  <pre class="lang-html prettyprint-override"><code>{% if something == 1 %}
  </code></pre>
  
  <p>Both seem to have the same result and I am at a loss</p>