flake8
passed.
JSHint
passed.
Review Request #12063 — Created Feb. 19, 2022 and submitted
When rendering the change form for a model on an admin site, we were
using Django'sadmin_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 theAdminSite
hosting the page. However, in reality, it
just hard-codesadmin
as the namespace, without caring about the
actualAdminSite
.This change removes this call entirely, switching to our own URL
building logic that respects theAdminSite
name.
Tested loading normal database model change forms, and extension-provided
ones.Tested the Delete button in each case.
Summary | ID |
---|---|
3bc8f9ad61b3af7f607a6284472f18ddef02724b |