#35395: slice filter crashes on an empty dict with Python 3.12
-------------------------------------+-------------------------------------
     Reporter:  Tim Richardson       |                    Owner:  Tim
                                     |  Richardson
         Type:  Bug                  |                   Status:  assigned
    Component:  Template system      |                  Version:  4.2
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Sarah Boyce):

 Hello, thank you for the PR!

 > When I submit a patch for this, is there a preferred way I can request
 that it be backported to 4.2 LTS, so at least someone considers it?

 Requesting on the ticket is fine. I have considered it, however I agree
 with Tim Graham that this doesn't qualify for a backport. 4.2 is only
 receiving security and data loss fixes.
 `slice` is also documented to be for lists
 (https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#slice), so
 I agree this is unexpected usage. I think you will need to make a custom
 template filter in your code for 4.2.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35395#comment:10>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018f0eda7031-49b48bd2-45bd-4b92-b7bf-854d059a7688-000000%40eu-central-1.amazonses.com.

Reply via email to