id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 23112 Field.get_choices tries to index an iterable: itertools.tee' object has no attribute '__getitem__' bernie_sumption Areski Belaid "Issue #23098 was fixed with this commit: https://github.com/django/django/commit/2f73b527dda6683868fac2791f7f07ccb01ea0d9 Which adds the following line: {{{ named_groups = self.choices and isinstance(self.choices[0][1], (list, tuple)) }}} According to the docs - https://docs.djangoproject.com/en/dev/ref/models/fields/#choices - Field.choices can be any iterable of choices. The above line introduces the requirement that the choices object to be subscriptable, and breaks both my own code and a 3rd party library I'm using (django_countries)." Bug closed Database layer (models, ORM) 1.7-rc-2 Release blocker fixed Florian Apolloner areski@… pdewacht@… lemuelf@… cmawebsite@… Jcuotpc@… Accepted 1 0 0 0 0 0