Changes between Initial Version and Version 1 of Ticket #37102


Ignore:
Timestamp:
May 17, 2026, 2:47:25 PM (3 weeks ago)
Author:
Raffaella
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37102 – Description

    initial v1  
    11  The CountsDict class in django/utils/html.py has a bug in its __init__ method:
    2 
     2{{{#!python
    33  class CountsDict(dict):
    44      def __init__(self, *args, word, **kwargs):
    55          super().__init__(*args, *kwargs)  # BUG: should be **kwargs
    66          self.word = word
    7 
     7}}}
    88  The call uses *kwargs (positional unpacking) instead of **kwargs (keyword unpacking). Currently this never triggers because CountsDict is only called with     
    99  word=middle, but it would fail if any keyword arguments were passed.
Back to Top