admin = Administrator.objects.get(login=admin_from_session.login, password=
    admin_from_session.password, enabled=True)
return view_func(request, *args, **kwargs)
How to run a piece of code in every view in django?