Changes between Initial Version and Version 1 of Ticket #33015, comment 2


Ignore:
Timestamp:
Aug 13, 2021, 11:57:24 AM (3 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33015, comment 2

    initial v1  
    55from django.db.models.expressions import Func
    66
     7class ExpressionTuple(Func):
     8    template = '(%(expressions)s)'
     9
    710ExampleModel.objects.filter(
    811    lookups.In(
    9         Func('val1', 'val2', template='(%(expressions)s)'),
     12        ExpressionTuple('val1', 'val2'),
    1013        tuple(items_to_fetch),
    1114    )
Back to Top