aboutsummaryrefslogtreecommitdiffstats
path: root/src/account/middleware.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/account/middleware.py')
-rw-r--r--src/account/middleware.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/account/middleware.py b/src/account/middleware.py
index 0f1dbd8..6a46dfe 100644
--- a/src/account/middleware.py
+++ b/src/account/middleware.py
@@ -16,9 +16,12 @@ from account.models import UserProfile
class TimezoneMiddleware(MiddlewareMixin):
"""
+ Manage user's Timezone preference.
+
Activate the timezone from request.user.userprofile if user is authenticated,
deactivate the timezone otherwise and use default (UTC)
"""
+
def process_request(self, request):
if request.user.is_authenticated:
try: