Changes between Initial Version and Version 1 of Ticket #29643


Ignore:
Timestamp:
Aug 6, 2018, 8:01:14 AM (6 years ago)
Author:
rhyre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29643 – Description

    initial v1  
    1 When using djangorestframework with django 2.0.X with lookup __in like id__in=[1,2,3] will raise: unhashable type: 'list'
     1When using djangorestframework with django 2.0.X with lookup _in like {{{id__in=[1,2,3]}}} will raise: unhashable type: 'list'
    22
    33traceback ends to this file:
     4{{{
    45/django/utils/tree.py" in __hash__
    56  74.         return hash((self.__class__, self.connector, self.negated) + tuple(self.children))
    6 When using tuples with __in everything works fine. But when using .values_list() on query I need to use tuple(query) to use it in Q object with __in lookup.
    7 Code worked before with 1.11 version just fine. Also when using __in without Q() everything seems to work just fine.
     7}}}
     8When using tuples with {{{__in}}} everything works fine. But when using .values_list() on query I need to use tuple(query) to use it in Q object with {{{__in}}} lookup.
     9Code worked before with 1.11 version just fine. Also when using _in without Q() everything seems to work just fine.
Back to Top