Changes between Initial Version and Version 1 of Ticket #35317


Ignore:
Timestamp:
Mar 19, 2024, 1:18:25 PM (2 months ago)
Author:
Laurent Lyaudet
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35317 – Description

    initial v1  
    1818{{{#!python
    1919orders = (
    20   Order.objects.filter(...)
    21   .exclude(...)
    22   .annotate(...)
    23   .prefetch_related(
    24       "items",
    25       "address",
    26       Prefetch(
    27           "packing_task__zonings",
    28           queryset=Zonings.objects.filter(...),
    29           filter_callback=lambda packing_task: packing_task.order.needs_to_consider_packing_problematic_zonings(),
    30           to="problematic_zonings",
    31       )
    32   )
     20    Order.objects.filter(...)
     21    .exclude(...)
     22    .annotate(...)
     23    .prefetch_related(
     24        "items",
     25        "address",
     26        Prefetch(
     27            "packing_task__zonings",
     28            queryset=Zonings.objects.filter(...),
     29            filter_callback=lambda packing_task: packing_task.order.needs_to_consider_packing_problematic_zonings(),
     30            to="problematic_zonings",
     31        )
     32    )
     33)
    3334}}}
    3435
Back to Top