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


Ignore:
Timestamp:
Dec 18, 2024, 12:28:07 PM (5 days ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33015, comment 9

    initial v1  
    1111}}}
    1212
     13For users that won't be able to upgrade to Django 5.2 anything soon you don't have to rely on `extra`; simply use `RawSQL`
     14
     15{{{#!python
     16from django.db.models.fields.tuple_lookups import Tuple, TupleIn
     17
     18ExampleModel.objects.filter(
     19    RawSQL("(val1, val2) in %s", (items_to_fetch,), output_field=BooleanField())
     20)
     21}}}
     22
    1323So I'll close this ticket as fixed since `Tuple` and `TupleIn` should be released as part of Django 5.2 so this request was effectively resolved by 1eac690d25dd49088256954d4046813daa37dc95.
Back to Top