def sidebar_information(request): _nav_event = [] for receiver, response in nav_event.send(request): if not response: continue if isinstance(response, collections.Mapping): _nav_event.append(response) else: _nav_event.extend(response) return {"nav_event": _nav_event}
def sidebar_information(request): _nav_event = [] for receiver, response in nav_event.send(request): _nav_event.append(response) return {'nav_event': _nav_event}