From 32b0981dc106f1447b5d0a233fc07e1f4d556e1d Mon Sep 17 00:00:00 2001 From: Robert Wittams Date: Sat, 12 Nov 2005 01:10:46 +0000 Subject: [PATCH] Fixed admin history links. Should be applied to trunk as well. git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1190 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/models/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/admin/models/admin.py b/django/contrib/admin/models/admin.py index b7f9bd03fc..b7bcda192b 100644 --- a/django/contrib/admin/models/admin.py +++ b/django/contrib/admin/models/admin.py @@ -43,7 +43,7 @@ class LogEntry(meta.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.get_content_type().package, self.get_content_type().python_module_name, self.object_id) + return "%s/%s/%s/" % (self.get_content_type().get_package(), self.get_content_type().python_module_name, self.object_id) def _module_log_action(user_id, content_type_id, object_id, object_repr, action_flag, change_message=''): e = LogEntry(None, None, user_id, content_type_id, object_id, object_repr[:200], action_flag, change_message)