Example #1
0
 def name_display(self, obj):
     return object_link("admin:sis_course_change", obj.name.title(), obj.pk)
Example #2
0
 def name_display(self, obj):
     return object_link("admin:account_myuser_change",
                        obj.student.user.name.title(), obj.student.user.pk)
Example #3
0
 def nobp_display(self, obj):
     return object_link("admin:account_student_change", obj.student.nobp,
                        obj.student.pk)
Example #4
0
 def assignment_display(self, obj):
     return object_link('admin:sis_assignment_change',
                        str(obj.assignment).title(), obj.assignment.pk)
Example #5
0
 def action(self, obj):
     return object_link('admin:sis_answer_change', "Check", obj.pk)
Example #6
0
 def action(self, obj):
     return object_link('admin:sis_assignment_change', "Edit", obj.pk)
Example #7
0
 def identity_display(self, obj):
     return object_link('admin:account_{}_change'.format(obj.identity[0]),
                        obj.identity[1],
                        getattr(obj, obj.identity[0]).pk)
Example #8
0
 def name_display(self, obj):
     return object_link('admin:account_myuser_change', obj.name.title(),
                        obj.pk)