title: Django: how to make part of the template visible only for admin
body: <p>I  have a template html file and i want to make part of it only visible to admin user.</p>
  
  <p>As far as i understand the default way is to write:</p>
  
  <pre><code>{% if request.user.is_staff %}
      code code code...
  {% endif %}
  </code></pre>
  
  <p>but sadly it wont work.</p>
  
  <p>This is my view:</p>
  
  <pre><code>@login_required
  def lessonsLOG(request):
      return render_to_response('NlessonsLOG.html', 
                                {'full_name': request.user.username, 'lessons': Lesson.objects.all() })
  </code></pre>
  
  <p>Please help, what am i doing wrong?</p>