Пример #1
0
 def get_absolute_url(self):
     return ('snippet_subversion_detail', None, {
         'snippet_language': self.language,
         'snippet_title': safe_url(self.title),
         'snippet_id': self.snippet.key().id(),
         'subversion_id': self.key().id()
     })
Пример #2
0
 def get_escape_name(self):
     return safe_url(self.name)
Пример #3
0
 def get_absolute_url(self):
     return ('tag_snippets', None, {'name': safe_url(self.name), 'tag_id': self.key().id()})