From f8e6be4d76cbccbce1a20f04b4065b75970af3e3 Mon Sep 17 00:00:00 2001 From: deyk Date: Wed, 18 Apr 2012 11:05:17 -0700 Subject: [PATCH 1/1] Guess we should unpack the iterables. --- cas_provider/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.20.1