{"action":"created","issue":{"url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/issues/1","labels_url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/issues/1/comments","events_url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/issues/1/events","html_url":"https://github.com/MSA-Argentina/django-bootstrap-markdown/pull/1","id":55953265,"number":1,"title":"Fix for bug caused when locale variable is set to None","user":{"login":"asdfjackal","id":6835205,"avatar_url":"https://avatars.githubusercontent.com/u/6835205?v=3","gravatar_id":"","url":"https://api.github.com/users/asdfjackal","html_url":"https://github.com/asdfjackal","followers_url":"https://api.github.com/users/asdfjackal/followers","following_url":"https://api.github.com/users/asdfjackal/following{/other_user}","gists_url":"https://api.github.com/users/asdfjackal/gists{/gist_id}","starred_url":"https://api.github.com/users/asdfjackal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asdfjackal/subscriptions","organizations_url":"https://api.github.com/users/asdfjackal/orgs","repos_url":"https://api.github.com/users/asdfjackal/repos","events_url":"https://api.github.com/users/asdfjackal/events{/privacy}","received_events_url":"https://api.github.com/users/asdfjackal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-29T20:36:46Z","updated_at":"2015-01-30T12:22:16Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/pulls/1","html_url":"https://github.com/MSA-Argentina/django-bootstrap-markdown/pull/1","diff_url":"https://github.com/MSA-Argentina/django-bootstrap-markdown/pull/1.diff","patch_url":"https://github.com/MSA-Argentina/django-bootstrap-markdown/pull/1.patch"},"body":"When I left the locale variable in settings.py for my project set to none, I received and UnboundLocalError. A look at the code lead me to the conclusion that if locale is set to None in settings.py, the local variable named locale widgets.py will never be set. I have added an else statement to widgets.py to handle such a scenario."},"comment":{"url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/issues/comments/72193314","html_url":"https://github.com/MSA-Argentina/django-bootstrap-markdown/pull/1#issuecomment-72193314","issue_url":"https://api.github.com/repos/MSA-Argentina/django-bootstrap-markdown/issues/1","id":72193314,"user":{"login":"DoctorMalboro","id":553651,"avatar_url":"https://avatars.githubusercontent.com/u/553651?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorMalboro","html_url":"https://github.com/DoctorMalboro","followers_url":"https://api.github.com/users/DoctorMalboro/followers","following_url":"https://api.github.com/users/DoctorMalboro/following{/other_user}","gists_url":"https://api.github.com/users/DoctorMalboro/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorMalboro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorMalboro/subscriptions","organizations_url":"https://api.github.com/users/DoctorMalboro/orgs","repos_url":"https://api.github.com/users/DoctorMalboro/repos","events_url":"https://api.github.com/users/DoctorMalboro/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorMalboro/received_events","type":"User","site_admin":false},"created_at":"2015-01-30T12:22:16Z","updated_at":"2015-01-30T12:22:16Z","body":"I just tested this behaviour and you're right, this does happen. I'll merge this now. Thanks for the PR!"}}