Changes between Initial Version and Version 1 of Ticket #29643
- Timestamp:
- Aug 6, 2018, 8:01:14 AM (6 years ago)
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'1 When using djangorestframework with django 2.0.X with lookup _in like {{{id__in=[1,2,3]}}} will raise: unhashable type: 'list' 2 2 3 3 traceback ends to this file: 4 {{{ 4 5 /django/utils/tree.py" in __hash__ 5 6 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 }}} 8 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. 9 Code worked before with 1.11 version just fine. Also when using _in without Q() everything seems to work just fine.