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