From 18d1b8177dba31e051e5406c011ebcb8d5f4acae Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 28 Feb 2006 14:23:53 +0000 Subject: [PATCH] magic-removal: Fixed #1417 -- Fixed admin.models.LogEntry.get_admin_url() to use new ContentType model fields. Thanks, nesh git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2441 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)