mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.8.x] Removed outdated docstring for get_admin_url().
Sincea4b8a4b632the admin URL returned by get_admin_url() is no longer relative to the Django admin index page. Backport of85757d0e79from master
This commit is contained in:
committed by
Tim Graham
parent
72539a5f29
commit
44dd65fb2c
@@ -74,7 +74,6 @@ class LogEntry(models.Model):
|
||||
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.
|
||||
"""
|
||||
if self.content_type and self.object_id:
|
||||
url_name = 'admin:%s_%s_change' % (self.content_type.app_label, self.content_type.model)
|
||||
|
||||
Reference in New Issue
Block a user