Extract URL resolver view strings mapping to admindocs
From discussion with Nick Pope: https://github.com/django/django/pull/14138#discussion_r595911054
URLResolver._is_callback()
, URLResolver._callback_strs
, and URLPattern.lookup_str
all exist only to power django.contrib.admindocs
functionality, and are all private attributes. The functionality they provide could be extracted into admindocs
to avoid the overhead of storing extra strings per URL in projects not using admindocs (in my experience, that is most projects).
Change History
(16)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Alokik Roy
|
Status: |
new → assigned
|
Patch needs improvement: |
set
|
Patch needs improvement: |
unset
|
Needs documentation: |
set
|
Patch needs improvement: |
set
|
Needs documentation: |
unset
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
Has patch: |
unset
|
Resolution: |
fixed
|
Status: |
closed → new
|
Triage Stage: |
Ready for checkin → Accepted
|
Hmmm 🤔 — internally these are only used by admindocs. I wonder if they're not being used by tooling somewhere… (asked ref PyCharm for an initial data point.)