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