#25150: Iterable objects are converted to lists during SQL handling
----------------------------------------------+--------------------
Reporter: ekoyle | Owner: nobody
Type: Uncategorized | Status: new
Component: Database layer (models, ORM) | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
----------------------------------------------+--------------------
I have an iterable object (netaddr.IPNetwork) that I am trying to use as
part of a query. The Django 1.8 update has introduced a regression in
which the object is cast to a list; however, although the object is
iterable we do not want to iterate through it but do a comparison on the
object proper.
I have a patch which restores the desired behavior, but I'm not certain if
there are any other side effects.
--
Ticket URL: <https://code.djangoproject.com/ticket/25150>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/049.3f3693724d9700f42dac251fb9986966%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.