fixed #23112 -- Field.get_choices tries to index an iterable

related to https://code.djangoproject.com/ticket/23112
Is there a scenario in which `list_choices` would be `UnboundLocalError` or `NameError`?