{"action":"closed","issue":{"url":"https://api.github.com/repos/anymail/django-anymail/issues/67","repository_url":"https://api.github.com/repos/anymail/django-anymail","labels_url":"https://api.github.com/repos/anymail/django-anymail/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/anymail/django-anymail/issues/67/comments","events_url":"https://api.github.com/repos/anymail/django-anymail/issues/67/events","html_url":"https://github.com/anymail/django-anymail/issues/67","id":236104936,"number":67,"title":"Set AnymailTrackingEvent.metadata to empty dict instead of None","user":{"login":"lauritzen","id":230444,"avatar_url":"https://avatars1.githubusercontent.com/u/230444?v=3","gravatar_id":"","url":"https://api.github.com/users/lauritzen","html_url":"https://github.com/lauritzen","followers_url":"https://api.github.com/users/lauritzen/followers","following_url":"https://api.github.com/users/lauritzen/following{/other_user}","gists_url":"https://api.github.com/users/lauritzen/gists{/gist_id}","starred_url":"https://api.github.com/users/lauritzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lauritzen/subscriptions","organizations_url":"https://api.github.com/users/lauritzen/orgs","repos_url":"https://api.github.com/users/lauritzen/repos","events_url":"https://api.github.com/users/lauritzen/events{/privacy}","received_events_url":"https://api.github.com/users/lauritzen/received_events","type":"User","site_admin":false},"labels":[{"id":339136475,"url":"https://api.github.com/repos/anymail/django-anymail/labels/feature/enhancement","name":"feature/enhancement","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-06-15T07:49:25Z","updated_at":"2017-06-30T23:56:49Z","closed_at":"2017-06-30T23:56:49Z","body":"If there is no metadata attached a tracking event the metadata field is set to `None`. This is a bit inconvenient while handling tracking events as it introduces an extra conditional before accessing the datastructure:\r\n\r\n```\r\nif event.metadata:\r\n  value = event.metadata.get(key)\r\n```\r\n\r\nSetting `metadata = {}` instead removes the need for the conditional."}}
{"actor":{"display_login":"medmunds"}}