I have a template html file and i want to make part of it only visible to admin user.

As far as i understand the default way is to write:

```
{% if request.user.is_staff %}
    code code code...
{% endif %}

```

but sadly it wont work.

This is my view:

```
@login_required
def lessonsLOG(request):
    return render_to_response('NlessonsLOG.html', 
                              {'full_name': request.user.username, 'lessons': Lesson.objects.all() })

```

Please help, what am i doing wrong?