{"action":"created","issue":{"url":"https://api.github.com/repos/alex/django-filter/issues/113","labels_url":"https://api.github.com/repos/alex/django-filter/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/alex/django-filter/issues/113/comments","events_url":"https://api.github.com/repos/alex/django-filter/issues/113/events","html_url":"https://github.com/alex/django-filter/issues/113","id":19725225,"number":113,"title":"Order By Field Doesn't Respect required=False","user":{"login":"kevinastone","id":1234915,"avatar_url":"https://avatars.githubusercontent.com/u/1234915?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinastone","html_url":"https://github.com/kevinastone","followers_url":"https://api.github.com/users/kevinastone/followers","following_url":"https://api.github.com/users/kevinastone/following{/other_user}","gists_url":"https://api.github.com/users/kevinastone/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinastone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinastone/subscriptions","organizations_url":"https://api.github.com/users/kevinastone/orgs","repos_url":"https://api.github.com/users/kevinastone/repos","events_url":"https://api.github.com/users/kevinastone/events{/privacy}","received_events_url":"https://api.github.com/users/kevinastone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alex/django-filter/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-09-19T03:37:24Z","updated_at":"2015-09-02T10:30:41Z","closed_at":"2015-09-02T10:30:41Z","body":"It attempts to get the default ordering from a choices field (I was using a free form regex field instead).  It should check if its required or there's a default before trying to retrieve the first value in the choices field.\r\n\r\nPresumably, without a provided order_by parameter, it should default to the model/queryset's default ordering and not just pick the first listed choice.\r\n\r\nhttps://github.com/alex/django-filter/blob/develop/django_filters/filterset.py#L297\r\n"},"comment":{"url":"https://api.github.com/repos/alex/django-filter/issues/comments/137019029","html_url":"https://github.com/alex/django-filter/issues/113#issuecomment-137019029","issue_url":"https://api.github.com/repos/alex/django-filter/issues/113","id":137019029,"user":{"login":"carltongibson","id":64686,"avatar_url":"https://avatars.githubusercontent.com/u/64686?v=3","gravatar_id":"","url":"https://api.github.com/users/carltongibson","html_url":"https://github.com/carltongibson","followers_url":"https://api.github.com/users/carltongibson/followers","following_url":"https://api.github.com/users/carltongibson/following{/other_user}","gists_url":"https://api.github.com/users/carltongibson/gists{/gist_id}","starred_url":"https://api.github.com/users/carltongibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carltongibson/subscriptions","organizations_url":"https://api.github.com/users/carltongibson/orgs","repos_url":"https://api.github.com/users/carltongibson/repos","events_url":"https://api.github.com/users/carltongibson/events{/privacy}","received_events_url":"https://api.github.com/users/carltongibson/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T10:30:41Z","updated_at":"2015-09-02T10:30:41Z","body":"I'm going to close this as Out of Scope for the moment. Happy to consider documented, tested pull requests. We may have capacity to reconsider in the future. "}}