diff --git a/django/contrib/admin/models.py b/django/contrib/admin/models.py index 0a422da1dc..022d20bed9 100644 --- a/django/contrib/admin/models.py +++ b/django/contrib/admin/models.py @@ -48,4 +48,4 @@ class LogEntry(models.Model): Returns the admin URL to edit the object represented by this log entry. This is relative to the Django admin index page. """ - return "%s/%s/%s/" % (self.content_type.package, self.content_type.python_module_name, self.object_id) + return "%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, self.object_id)