From 58a5d585e93f317d465f1037586e8b43929c733d Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 7 Nov 2024 13:26:10 +0000 Subject: [PATCH] delete unnecessary code --- codeforlife/models/abstract_base_user.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/codeforlife/models/abstract_base_user.py b/codeforlife/models/abstract_base_user.py index 8c74a26..5b2305f 100644 --- a/codeforlife/models/abstract_base_user.py +++ b/codeforlife/models/abstract_base_user.py @@ -3,7 +3,6 @@ Created on 06/11/2024 at 16:38:15(+00:00). """ -# import sys import typing as t from functools import cached_property @@ -53,15 +52,6 @@ def _session_class(self): @property def is_authenticated(self): """A flag designating if this contributor has authenticated.""" - # TODO: delete if not needed. - # Avoid initial migration error where session table is not created yet - # if ( - # sys.argv - # and "manage.py" in sys.argv[0] - # and "runserver" not in sys.argv - # ): - # return True - try: return self.is_active and not self.session.is_expired except self._session_class.DoesNotExist: