Skip to content

Commit

Permalink
Support Python 3.7.3 and Django 2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
waseem-omar committed May 21, 2019
1 parent aa34571 commit fc9cd1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion accountsplus/context_processors.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
def masquerade_info(request):
if request.user.is_authenticated():
if request.user.is_authenticated:
return {
'is_masquerading': request.session.get('is_masquerading', False),
}
Expand Down
2 changes: 1 addition & 1 deletion accountsplus/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class TimezoneMiddleware(MiddlewareMixin):
def process_request(self, request):
if request.user.is_authenticated() and request.user.timezone:
if request.user.is_authenticated and request.user.timezone:
django.utils.timezone.activate(request.user.timezone)
else:
django.utils.timezone.deactivate()

0 comments on commit fc9cd1f

Please sign in to comment.