title: Template logic not functioning properly
body: <p>template.html</p>
  
  <pre><code>&lt;tr&gt;&lt;td&gt;
      {% if place %}                                
        &lt;input type="checkbox" id="select_all"/&gt;Display all&lt;br /&gt;
        &lt;hr style="width: 150px;margin: 8px 0;"&gt;
        {% for value in place %}
        {{ value }}
        {% endfor %}
      {% endif %}&lt;/td&gt;&lt;/tr&gt;
  &lt;tr&gt;&lt;td&gt;{% include "buttons/addalist.html" %} {% include "buttons/save.html" %}&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def type_list(request,type_id):
      user = request.user
      try:
          type_list = Types.objects.get(user=user.id, id=type_id)
      except:
          return redirect('incident.views.incident_types')
      if request.method == 'POST':
          report_type = TypeSettingsForm(request.POST)
  
          if 'title' in request.POST and report_type.is_valid():
              if request.POST['title'].strip():
                  result = report_type.save(commit=False)
                  result.user = user
                  result.is_active = True
                  result.parent_type_id = type_id
                  result.save()
          else:
              place = TypeSelectionForm(type_id, request.POST)
              if types.is_valid() and 'status' in request.POST:
                  types.save(type_id, request.POST)
                  type_list.is_active = eval(request.POST['status'])
                  type_list.save()
  
                  return redirect('incident.views.incident_types')
      place = TypeSelectionForm(type_id)
  
      return render(request, 'incident/type_list.html',
          {
              'about_menu': True,
              'type_list': type_list,
              'place':place
      })
  </code></pre>
  
  <p>clicking addalist button,values are getting saved and displayed in template.</p>
  
  <p>But initially,if their is no value displayed from for loop, <code>Display All</code> with check box should not come to display.If a single value from for loop is entered Display All with check box will come to display.It's a small logical error but i am not  got this.Help is greatly appreciated.</p>