Changes between Version 3 and Version 4 of Ticket #35971


Ignore:
Timestamp:
Dec 4, 2024, 9:09:12 AM (3 months ago)
Author:
Adrien Kunysz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35971 – Description

    v3 v4  
    77It would be convenient to move that logic into a separate method that could be overridden. For example:
    88{{{
    9 get_username(self, header_name):
     9get_username(self, request, header_name):
    1010    return request.META[header_name]   
    1111}}}
     
    1515With the proposed change, in my child class I could just say
    1616{{{
    17 def get_username(self, header_name):
     17def get_username(self, request, header_name):
    1818    if request.META["X-Authenticated"].lower() != "true":
    1919        raise KeyError
Back to Top