Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified imports on utils.py due to Django no logner supporting six o… #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions django_sso_ui/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
from cas import CASClient
from django.conf import settings as django_settings
from django.utils.six.moves import urllib_parse
from six.moves import urllib_parse


def normalize_username(username):
Expand All @@ -19,7 +19,8 @@ def get_protocol(request):
def get_service_url(request, redirect_to=None):
protocol = get_protocol(request)
host = request.get_host()
service = urllib_parse.urlunparse((protocol, host, request.path, "", "", ""))
service = urllib_parse.urlunparse(
(protocol, host, request.path, "", "", ""))

return service

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
python-cas==1.4.0
six==1.16.0