Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

magic-removal: Fixed #1308 -- API changes in admin models. Thanks, mo…

…okai

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2219 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a9db2c18c0b30c0145b9ce406fcc0acb9635f02b 1 parent 52b2dd6
Adrian Holovaty adrianholovaty authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/models.py
4 django/contrib/admin/models.py
View
@@ -41,11 +41,11 @@ def is_deletion(self):
def get_edited_object(self):
"Returns the edited object represented by this log entry"
- return self.get_content_type().get_object_for_this_type(pk=self.object_id)
+ return self.content_type.get_object_for_this_type(pk=self.object_id)
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().get_package(), self.get_content_type().python_module_name, self.object_id)
+ return "%s/%s/%s/" % (self.content_type.get_package(), self.content_type.python_module_name, self.object_id)
Please sign in to comment.
Something went wrong with that request. Please try again.