{"action":"created","issue":{"url":"https://api.github.com/repos/jamesfoley/django-settings/issues/3","labels_url":"https://api.github.com/repos/jamesfoley/django-settings/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jamesfoley/django-settings/issues/3/comments","events_url":"https://api.github.com/repos/jamesfoley/django-settings/issues/3/events","html_url":"https://github.com/jamesfoley/django-settings/pull/3","id":127195284,"number":3,"title":"Add a function to assign a setting to allow testing for emptiness/non-existence in templates.","user":{"login":"lewiscollard","id":4973097,"avatar_url":"https://avatars.githubusercontent.com/u/4973097?v=3","gravatar_id":"","url":"https://api.github.com/users/lewiscollard","html_url":"https://github.com/lewiscollard","followers_url":"https://api.github.com/users/lewiscollard/followers","following_url":"https://api.github.com/users/lewiscollard/following{/other_user}","gists_url":"https://api.github.com/users/lewiscollard/gists{/gist_id}","starred_url":"https://api.github.com/users/lewiscollard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewiscollard/subscriptions","organizations_url":"https://api.github.com/users/lewiscollard/orgs","repos_url":"https://api.github.com/users/lewiscollard/repos","events_url":"https://api.github.com/users/lewiscollard/events{/privacy}","received_events_url":"https://api.github.com/users/lewiscollard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-18T10:17:37Z","updated_at":"2016-01-18T11:19:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jamesfoley/django-settings/pulls/3","html_url":"https://github.com/jamesfoley/django-settings/pull/3","diff_url":"https://github.com/jamesfoley/django-settings/pull/3.diff","patch_url":"https://github.com/jamesfoley/django-settings/pull/3.patch"},"body":"It seems more natural to name the assignment tag `get_setting`, so the new tag takes over the old name in this change, with the old tag being renamed `setting`.\r\n\r\nA consequence of this is that the function to get the value (test setting type, return appropriate field) is now a method on the object; that it can now be used outside of templates without duplicating the same code is a nice side-effect."},"comment":{"url":"https://api.github.com/repos/jamesfoley/django-settings/issues/comments/172501578","html_url":"https://github.com/jamesfoley/django-settings/pull/3#issuecomment-172501578","issue_url":"https://api.github.com/repos/jamesfoley/django-settings/issues/3","id":172501578,"user":{"login":"danielsamuels","id":1781176,"avatar_url":"https://avatars.githubusercontent.com/u/1781176?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsamuels","html_url":"https://github.com/danielsamuels","followers_url":"https://api.github.com/users/danielsamuels/followers","following_url":"https://api.github.com/users/danielsamuels/following{/other_user}","gists_url":"https://api.github.com/users/danielsamuels/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsamuels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsamuels/subscriptions","organizations_url":"https://api.github.com/users/danielsamuels/orgs","repos_url":"https://api.github.com/users/danielsamuels/repos","events_url":"https://api.github.com/users/danielsamuels/events{/privacy}","received_events_url":"https://api.github.com/users/danielsamuels/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T11:19:16Z","updated_at":"2016-01-18T11:19:16Z","body":"LGTM, but it's not my repo, so I can't sign it off. :smile: "}}