コード例 #1
0
ファイル: models.py プロジェクト: benguillet/dcor_frontend
 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 mark_safe(u"%s/%s/%s/" % (self.content_type.app_label, self.content_type.model, quote(self.object_id)))
コード例 #2
0
ファイル: main.py プロジェクト: benguillet/dcor_frontend
 def url_for_result(self, result):
     return "%s/" % quote(getattr(result, self.pk_attname))