Skip to content
Browse files

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


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 52b2dd6 commit a9db2c18c0b30c0145b9ce406fcc0acb9635f02b @adrianholovaty adrianholovaty committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/
4 django/contrib/admin/
@@ -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)

0 comments on commit a9db2c1

Please sign in to comment.
Something went wrong with that request. Please try again.