#20094: Models with `next` method on python 2.6 ----------------------------------------------+-------------------- Reporter: mjtamlyn | Owner: nobody Type: Bug | Status: new Component: Database layer (models, ORM) | Version: 1.5 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+-------------------- I've identified a problem with the following commit https://github.com/django/django/commit/df7a65ac4ba36dd155e80b8bcfe607390976ad47
The behaviour of `isinstance(foo, collections.Iterable)` is different between python 2.6 and python 2.7/3.X This gist https://gist.github.com/mjtamlyn/5203598 will demonstrate the problem The end result is that any model which defines a `next` method fails on python 2.6/django1.5 when used in a foreign key, as it has a `next` method but is not iterable. -- Ticket URL: <https://code.djangoproject.com/ticket/20094> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.