From 8aa997a2f6858b1bc496e4b22960eaad99fef661 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 28 Dec 2021 11:46:17 +0100 Subject: [PATCH] comment decorators --- ereuse_devicehub/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ereuse_devicehub/views.py b/ereuse_devicehub/views.py index 3c5b28d0..1a458345 100644 --- a/ereuse_devicehub/views.py +++ b/ereuse_devicehub/views.py @@ -32,8 +32,10 @@ class LoginView(View): return flask.render_template('ereuse_devicehub/user_login.html', form=form) +from flask import g, current_app as app + class UserProfileView(View): - decorators = [login_required] + # decorators = [login_required] template_name = 'ereuse_devicehub/user_profile.html' def dispatch_request(self):