File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments