Skip to content

Commit

Permalink
delete unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Nov 7, 2024
1 parent 691d372 commit 58a5d58
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions codeforlife/models/abstract_base_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 58a5d58

Please sign in to comment.