From: deyk Date: Wed, 18 Apr 2012 18:05:17 +0000 (-0700) Subject: Guess we should unpack the iterables. X-Git-Tag: 22.4~20 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/f8e6be4d76cbccbce1a20f04b4065b75970af3e3?hp=59b906fd2d60bd4a8712c23796a3ccfecbf5c5ad Guess we should unpack the iterables. --- diff --git a/cas_provider/views.py b/cas_provider/views.py index be6c4d4..3572303 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -341,7 +341,10 @@ def auth_success_response(user, pgt, proxies): if custom: attrs.update(custom) - attrs['identifiers'] = [i for r, i in signals.on_cas_collect_histories.send(sender=validate, for_user=user)] + identifiers = [i for sr, rr in signals.on_cas_collect_histories.send(sender=validate, for_user=user) + for i in rr] + if identifiers: + attrs['identifiers'] = identifiers if attrs: formatter = get_callable(settings.CAS_CUSTOM_ATTRIBUTES_FORMATER)