Add support for targeting notifications to organizations and remove the password_required notification for new orbs

This commit is contained in:
Joseph Schorr 2014-03-12 19:00:24 -04:00
parent 578add3b9e
commit 525ef8d14f
8 changed files with 61 additions and 16 deletions

View file

@ -2521,6 +2521,7 @@ def get_logs(namespace, start_time, end_time, performer_name=None,
def notification_view(notification):
return {
'organization': notification.target.username if notification.target.organization else None,
'kind': notification.kind.name,
'created': notification.created,
'metadata': json.loads(notification.metadata_json),