Skip to content

Commit

Permalink
fix "view on site" for non-integer pks
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Oct 22, 2024
1 parent ef01260 commit f90fc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/<int:content_type_id>/<path:object_id>/",
"r/<str:content_type_id>/<path:object_id>/",
wrap(contenttype_views.shortcut),
name="view_on_site",
),
Expand Down

0 comments on commit f90fc44

Please sign in to comment.