Fix loading admin pages with Delete links on extension admin sites.
Review Request #12063 — Created Feb. 19, 2022 and submitted
When rendering the change form for a model on an admin site, we were
admin_urlname()function to generate the namespaced URL
name to the model.
Since this is what Django itself calls, it was expected to work
regardless of the
AdminSitehosting the page. However, in reality, it
adminas the namespace, without caring about the
This change removes this call entirely, switching to our own URL
building logic that respects the
Tested loading normal database model change forms, and extension-provided
Tested the Delete button in each case.