mirror of
https://github.com/django/django.git
synced 2025-06-02 01:59:11 +00:00
Removed outdated docstring for get_admin_url().
Since a4b8a4b632dbb6d9fed1a8654aed99a9c53560d4 the admin URL returned by get_admin_url() is no longer relative to the Django admin index page.
This commit is contained in:
parent
6b28e957df
commit
85757d0e79
@ -74,7 +74,6 @@ class LogEntry(models.Model):
|
|||||||
def get_admin_url(self):
|
def get_admin_url(self):
|
||||||
"""
|
"""
|
||||||
Returns the admin URL to edit the object represented by this log entry.
|
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:
|
if self.content_type and self.object_id:
|
||||||
url_name = 'admin:%s_%s_change' % (self.content_type.app_label, self.content_type.model)
|
url_name = 'admin:%s_%s_change' % (self.content_type.app_label, self.content_type.model)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user