Skip to content

Commit 639fe31

Browse files
author
Dan Campbell
committed
Merge branch 'signal'
2 parents 746131e + 362bfcf commit 639fe31

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)