From f90fc4473bc49ca53060f53ca962932c0885b106 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 17 Oct 2024 14:38:05 -0400 Subject: [PATCH] fix "view on site" for non-integer pks --- django/contrib/admin/sites.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index bb02cb08ac..3a0ecab6df 100644 --- a/django/contrib/admin/sites.py +++ b/django/contrib/admin/sites.py @@ -279,7 +279,7 @@ def wrapper(*args, **kwargs): path("autocomplete/", wrap(self.autocomplete_view), name="autocomplete"), path("jsi18n/", wrap(self.i18n_javascript, cacheable=True), name="jsi18n"), path( - "r///", + "r///", wrap(contenttype_views.shortcut), name="view_on_site", ),