예제 #1
0
 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:
         return "%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, quote(self.object_id))
     return None
예제 #2
0
파일: main.py 프로젝트: RobKmi/guru
 def url_for_result(self, result):
     return "%s/" % quote(getattr(result, self.pk_attname))
예제 #3
0
파일: models.py 프로젝트: RobKmi/guru
 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:
         return mark_safe(u"%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, quote(self.object_id)))
     return None