Changes between Version 3 and Version 4 of Ticket #35971
- Timestamp:
- Dec 4, 2024, 9:09:12 AM (3 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35971 – Description
v3 v4 7 7 It would be convenient to move that logic into a separate method that could be overridden. For example: 8 8 {{{ 9 get_username(self, header_name):9 get_username(self, request, header_name): 10 10 return request.META[header_name] 11 11 }}} … … 15 15 With the proposed change, in my child class I could just say 16 16 {{{ 17 def get_username(self, header_name):17 def get_username(self, request, header_name): 18 18 if request.META["X-Authenticated"].lower() != "true": 19 19 raise KeyError