#30788: Fix concatenation of tuple to list (or vice versa)
-------------------------------------+-------------------------------------
     Reporter:  Dmitry Mugtasimov    |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  postgresql           |             Triage Stage:
                                     |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by mcosta74):

 * status:  closed => new
 * resolution:  needsinfo =>


Comment:

 I can confirm this is a BUG introduced in v2.2.6 most likely in
 https://code.djangoproject.com/ticket/30769

 In my case was about a QuerySet with a filter on a JSONField
 Here my model

 {{{
 class CustomFieldDefinition(models.Model):
     """
     Custom field
     """

     ....

     metadata = JSONField(
         verbose_name="Additional information relative to the field.",
         default=dict,
     )
 }}}

 and this is my queryset

 {{{
     qs = CustomFieldDefinition.objects.filter(pk__in=values) \
         .filter(metadata__LDAP__has_key='attributename') \
         .values_list('metadata', flat=True)
 }}}

 as soon as I run

 {{{
 qs.all()
 }}}

 I get the same error

 in v2.2.5 the code works

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30788#comment:2>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.e93cab1354de171d2f250ca8f1517a89%40djangoproject.com.

Reply via email to