def METHOD_NAME(self, instance):
    t = loader.get_template("topic_courses_admin.html")
    METHOD_NAME = instance.METHOD_NAME.all()
    for course in METHOD_NAME:
        course.a_link = reverse("admin:courses_course_change", args=[course.id])
    return t.render({"courses": instance.METHOD_NAME.all()})