示例#1
0
 def get_absolute_url(self):
     return reverse2("questionnaire", self.questionnaire.pk, self.pk)
示例#2
0
 def section_links(self):
     section_url = "admin:questionnaire_section_change"
     lst = [(c.pk, c.name) for c in self.sections.all()]
     lst = [(reverse2(section_url, pk), name) for pk, name in lst]
     return ", ".join([link % c for c in lst])
示例#3
0
 def get_absolute_url(self, section=1):
     return reverse2("questionnaire", self.pk, section)
示例#4
0
文件: models.py 项目: McDoku/denigma
 def get_absolute_url(self):
     return reverse2("questionnaire", self.questionnaire.pk, self.pk)
示例#5
0
文件: models.py 项目: McDoku/denigma
 def section_links(self):
     section_url = "admin:questionnaire_section_change"
     lst = [(c.pk, c.name) for c in self.sections.all()]
     lst = [(reverse2(section_url, pk), name) for pk, name in lst]
     return ", ".join([link % c for c in lst])
示例#6
0
文件: models.py 项目: McDoku/denigma
 def get_absolute_url(self, section=1):
     return reverse2("questionnaire", self.pk, section)