{"action":"closed","issue":{"url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1652","labels_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1652/labels{/name}","comments_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1652/comments","events_url":"https://api.github.com/repos/django-oscar/django-oscar/issues/1652/events","html_url":"https://github.com/django-oscar/django-oscar/issues/1652","id":56343537,"number":1652,"title":"Postcode field raises ValidationError even if set as not required","user":{"login":"okfish","id":2776878,"avatar_url":"https://avatars.githubusercontent.com/u/2776878?v=3","gravatar_id":"","url":"https://api.github.com/users/okfish","html_url":"https://github.com/okfish","followers_url":"https://api.github.com/users/okfish/followers","following_url":"https://api.github.com/users/okfish/following{/other_user}","gists_url":"https://api.github.com/users/okfish/gists{/gist_id}","starred_url":"https://api.github.com/users/okfish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okfish/subscriptions","organizations_url":"https://api.github.com/users/okfish/orgs","repos_url":"https://api.github.com/users/okfish/repos","events_url":"https://api.github.com/users/okfish/events{/privacy}","received_events_url":"https://api.github.com/users/okfish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/django-oscar/django-oscar/labels/%E2%98%81%20Bug","name":"☁ Bug","color":"F8C1C1"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/django-oscar/django-oscar/milestones/11","html_url":"https://github.com/django-oscar/django-oscar/milestones/1.1","labels_url":"https://api.github.com/repos/django-oscar/django-oscar/milestones/11/labels","id":747537,"number":11,"title":"1.1","description":"","creator":{"login":"maikhoepfel","id":509427,"avatar_url":"https://avatars.githubusercontent.com/u/509427?v=3","gravatar_id":"","url":"https://api.github.com/users/maikhoepfel","html_url":"https://github.com/maikhoepfel","followers_url":"https://api.github.com/users/maikhoepfel/followers","following_url":"https://api.github.com/users/maikhoepfel/following{/other_user}","gists_url":"https://api.github.com/users/maikhoepfel/gists{/gist_id}","starred_url":"https://api.github.com/users/maikhoepfel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maikhoepfel/subscriptions","organizations_url":"https://api.github.com/users/maikhoepfel/orgs","repos_url":"https://api.github.com/users/maikhoepfel/repos","events_url":"https://api.github.com/users/maikhoepfel/events{/privacy}","received_events_url":"https://api.github.com/users/maikhoepfel/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":13,"state":"open","created_at":"2014-08-08T13:22:13Z","updated_at":"2015-02-26T14:57:09Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-02-03T07:28:48Z","updated_at":"2015-02-26T14:57:09Z","closed_at":"2015-02-26T14:57:09Z","body":"I've set up\r\n<pre>\r\nOSCAR_REQUIRED_ADDRESS_FIELDS = ('first_name', 'last_name', 'line4', 'line1', 'country')\r\n</pre>\r\nbut form does not validates empty postcode field. Seems like _ensure_postcode_is_valid_for_country_ [1] method doesnt know anything about this feature.\r\n\r\n[1] https://github.com/django-oscar/django-oscar/blob/master/src/oscar/apps/address/abstract_models.py#L262"}}