Skip to content

Commit 5386c3a

Browse files
committed
fix "view on site" for non-integer pks
1 parent 5ba3a96 commit 5386c3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/contrib/admin/sites.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def wrapper(*args, **kwargs):
282282
path("autocomplete/", wrap(self.autocomplete_view), name="autocomplete"),
283283
path("jsi18n/", wrap(self.i18n_javascript, cacheable=True), name="jsi18n"),
284284
path(
285-
"r/<int:content_type_id>/<path:object_id>/",
285+
"r/<str:content_type_id>/<path:object_id>/",
286286
wrap(contenttype_views.shortcut),
287287
name="view_on_site",
288288
),

0 commit comments

Comments
 (0)