def METHOD_NAME(self, db_field, request, **kwargs):
    # Hack to limit most_recent choices to courses of the same Topic
    if db_field.name == "most_recent" and request.resolver_match.kwargs.get("object_id"):
        topic_id = request.resolver_match.kwargs["object_id"]
        kwargs["queryset"] = Course.objects.filter(topic_id=topic_id)
    return super().METHOD_NAME(db_field, request, **kwargs)