Exemple #1
0
 def center_link(self, obj):
     return admin_url_for(self, obj.center)
Exemple #2
0
 def user_link(self, obj):
     return admin_url_for(self, obj.user)
Exemple #3
0
 def edition_link(self, obj):
     return admin_url_for(self, obj.edition)
Exemple #4
0
 def username(self, obj):
     return admin_url_for(self, obj.user, label=lambda u: u.username)
Exemple #5
0
 def qcm_event_edition(self, obj):
     return admin_url_for(self, obj.qcm.event.edition)
Exemple #6
0
 def contestant_user(self, obj):
     return admin_url_for(self, obj.contestant.user)
Exemple #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)))
Exemple #8
0
 def proposition_question_qcm_event_edition(self, obj):
     return admin_url_for(self, obj.proposition.question.qcm.event.edition)