Skip to content

Commit

Permalink
Bumping dependency versions, fixing minor breaking changes, modern co…
Browse files Browse the repository at this point in the history
…mpatibility for LTS versions.
  • Loading branch information
alexdlaird committed Dec 4, 2023
1 parent 7687884 commit 665cb87
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
1 change: 0 additions & 1 deletion conf/configs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
Expand Down
8 changes: 4 additions & 4 deletions myproject/auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
def register(request):
redirect = None

if request.user.is_authenticated():
if request.user.is_authenticated:
redirect = reverse('portal')

if request.method == 'POST':
Expand Down Expand Up @@ -65,7 +65,7 @@ def login(request):
status = None

user_login_form = UserLoginForm()
if request.user.is_authenticated():
if request.user.is_authenticated:
redirect = reverse('portal')
else:
if request.method == 'POST':
Expand Down Expand Up @@ -101,7 +101,7 @@ def login(request):


def logout(request):
if request.user.is_authenticated():
if request.user.is_authenticated:
authservice.process_logout(request)

return HttpResponseRedirect(reverse('portal'))
Expand All @@ -111,7 +111,7 @@ def forgot(request):
redirect = None
status = None

if request.user.is_authenticated():
if request.user.is_authenticated:
redirect = reverse('settings')
else:
if request.method == 'POST':
Expand Down
2 changes: 1 addition & 1 deletion myproject/common/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

def home(request):
redirect = reverse('login')
if request.user.is_authenticated():
if request.user.is_authenticated:
redirect = reverse('portal')

return HttpResponseRedirect(redirect)
18 changes: 8 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
six==1.15.0
future==0.18.2
coverage==5.1
django==1.11.29
django-pipeline==1.7.0
coverage==5.5
django==2.2.28
django-pipeline==2.0.6
django-widget-tweaks==1.4.8
django-dotenv==1.4.2
django-debug-toolbar==1.11.1
mysqlclient==1.4.6
django-redis==4.10.0
pytz==2020.1
pyngrok>=4.1,<4.2
django-debug-toolbar==3.2.1
mysqlclient==2.0.3
django-redis==4.12.1
pytz==2021.1
pyngrok==7.0.2

0 comments on commit 665cb87

Please sign in to comment.