I want to render the specified template only when the admin got logged in so I used login\_required decorator
but it is redirecting to admin rather than rendering and displaying the specified template 

```
@login_required(login_url='/admin/')
def employeesignupview(request):
    return render(request,'todoapp/employeesignup.html')

```