Skip to content

Commit 4210666

Browse files
committed
Remove leftover print
1 parent f9e7319 commit 4210666

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Changelog
55
---------------------
66

77
**Features**
8+
89
* ``GROUP_TO_FLAG_MAPPING`` can now be a list of groups. @joachimBurket #104
910

1011

django_auth_adfs/config.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,8 @@ def __init__(self):
133133
self.CLAIM_MAPPING = {"first_name": "given_name",
134134
"last_name": "family_name",
135135
"email": "email"}
136-
else:
137-
if "VERSION" in _settings:
138-
print('got here')
139-
raise ImproperlyConfigured("The VERSION cannot be set when TENANT_ID is set.")
136+
elif "VERSION" in _settings:
137+
raise ImproperlyConfigured("The VERSION cannot be set when TENANT_ID is set.")
140138

141139
# Overwrite defaults with user settings
142140
for setting, value in _settings.items():
@@ -165,7 +163,7 @@ def __init__(self):
165163

166164
# Validate setting conflicts
167165
usermodel = get_user_model()
168-
if usermodel.USERNAME_FIELD in self.CLAIM_MAPPING.keys():
166+
if usermodel.USERNAME_FIELD in self.CLAIM_MAPPING:
169167
raise ImproperlyConfigured("You cannot set the username field of the user model from "
170168
"the CLAIM_MAPPING setting. Instead use the USERNAME_CLAIM setting.")
171169

0 commit comments

Comments
 (0)