Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed the "recent actions" list not pointing to the objects detail pa…

…ge - backport of rjwittams fix from new_admin

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1191 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d47c0a55a26af9e170a3455bbb873132e05658bc 1 parent da33b65
Georg Bauer authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/models/admin.py
View
2  django/contrib/admin/models/admin.py
@@ -43,7 +43,7 @@ def get_admin_url(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.