示例#1
0
 def center_link(self, obj):
     return admin_url_for(self, obj.center)
示例#2
0
 def user_link(self, obj):
     return admin_url_for(self, obj.user)
示例#3
0
 def edition_link(self, obj):
     return admin_url_for(self, obj.edition)
示例#4
0
文件: admin.py 项目: rosequ/site
 def username(self, obj):
     return admin_url_for(self, obj.user, label=lambda u: u.username)
示例#5
0
 def qcm_event_edition(self, obj):
     return admin_url_for(self, obj.qcm.event.edition)
示例#6
0
 def contestant_user(self, obj):
     return admin_url_for(self, obj.contestant.user)
示例#7
0
 def proposition_question(self, obj):
     # So we can have HTML questions
     return admin_url_for(self,
                          obj.proposition.question,
                          label=lambda u: mark_safe(strip_tags(u.body)))
示例#8
0
 def proposition_question_qcm_event_edition(self, obj):
     return admin_url_for(self, obj.proposition.question.qcm.event.edition)