Skip to content

Commit 362bfcf

Browse files
author
Dan Campbell
committed
Updated README information regarding the pre_user_save signal handler.
1 parent 97e78f6 commit 362bfcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,12 +415,12 @@ following code to your app::
415415

416416
from djangosaml2.signals import pre_user_save
417417

418-
def custom_update_user(sender=user, attributes=attributes, user_modified=user_modified)
418+
def custom_update_user(sender=User, instance, attributes, user_modified, **kargs)
419419
...
420420
return True # I modified the user object
421421

422422

423-
Your handler will receive the user object, the list of SAML attributes
423+
Your handler will receive the user object instance, the list of SAML attributes
424424
and a flag telling you if the user is already modified and need
425425
to be saved after your handler is executed. If your handler
426426
modifies the user object it should return True. Otherwise it should

0 commit comments

Comments
 (0)