def METHOD_NAME(self, activity, session):
    """
    This method is called when the next button is clicked on an activity.
    :return: A redirection to the main page of the activity accordingly to the function.
    """
    return redirect(reverse("activity:play", args=[activity.id]))