Deprecation warning for action_location parameter should mention subclass and/or point to user code
As pointed out in #37187, we have deprecation warnings being emitted on wsgiref frames for the deprecation warning added in #12090:
/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/wsgiref/handlers.py:137: RemovedInDjango70Warning: Overriding get_action_choices() without the 'action_location' parameter is deprecated. Update the signature to get_action_choices(self, request, default_choices=None, action_location=ActionLocation.CHANGE_LIST).
Analysis from #37187:
... trying to warn about an overridden subclass method that has already been called so is no longer on the stack.
Change History
(9)
| Summary: |
Deprecation warning for action_location parameter should warn about external use instead of skipping Django frames → Deprecation warning for action_location parameter should mention subclass and not skip Django frames
|
| Summary: |
Deprecation warning for action_location parameter should mention subclass and not skip Django frames → Deprecation warning for action_location parameter should mention subclass and/or point to user code
|
| Owner: |
set to Mike Edmunds
|
| Status: |
new → assigned
|
| Triage Stage: |
Unreviewed → Accepted
|
| Triage Stage: |
Accepted → Ready for checkin
|
| Resolution: |
→ fixed
|
| Status: |
assigned → closed
|
The new
warnings.warn_explicit()helper being proposed for #37187 could also cover this.