summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-11-12 01:16:14 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-11-12 01:16:14 +0000
commitd47c0a55a26af9e170a3455bbb873132e05658bc (patch)
tree7d11961ba4e639c6e0ea81294f7dd97729740998
parentda33b656ce59cec3c2b3a5748ac2ecdff96fde5b (diff)
fixed the "recent actions" list not pointing to the objects detail page - backport of rjwittams fix from new_admin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/admin/models/admin.py2
1 files changed, 1 insertions, 1 deletions
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)