Changes between Version 1 and Version 2 of Ticket #35395


Ignore:
Timestamp:
Apr 22, 2024, 6:27:27 AM (7 months ago)
Author:
Tim Graham
Comment:

Hi Tim, You haven't provided complete steps to reproduce the issue as your snippet involves custom template filters. The issue may be in those filters. You should debug the problem and confirm that Django is at fault. If so, reopen the issue with an explanation. See TicketClosingReasons/UseSupportChannels if you need help.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35395

    • Property Resolutionneedsinfo
    • Property Status newclosed
  • Ticket #35395 – Description

    v1 v2  
    22
    33
    4 <span
    5                             class="fs-6">Supplier: {{ po_metadata|get_item:dict_item.PONumber|get_item:"supplier" }} PO Date: {{ po_metadata|get_item:dict_item.PONumber|get_item:"order_date" | slice:":10" }} </span>
     4`<span class="fs-6">Supplier: {{ po_metadata|get_item:dict_item.PONumber|get_item:"supplier" }} PO Date: {{ po_metadata|get_item:dict_item.PONumber|get_item:"order_date" | slice:":10" }} </span>`
    65
    76
     
    1312
    1413In python 3.11, the breakpoints  in slice_filter() are not hit. Somehow the preceeding filters are behaving differently in case of po_metadata being an empty  dict.
    15 
    16 
    17 
    18 
Back to Top