def format_choices(field: models.Field): for choice in field.choices: printable_name = force_text(choice[1]) yield [choice[0], printable_name]