diff --git a/zds/tutorialv2/urls/urls_opinions.py b/zds/tutorialv2/urls/urls_opinions.py index 445c618999..ff1ac65929 100644 --- a/zds/tutorialv2/urls/urls_opinions.py +++ b/zds/tutorialv2/urls/urls_opinions.py @@ -21,7 +21,7 @@ path("", ListOpinions.as_view(), name="list"), path( "voir//", - ContentOfAuthor.as_view(type="OPINION", context_object_name="opinions", sort="creation"), + ContentOfAuthor.as_view(type="OPINION", context_object_name="opinions"), name="find-opinion", ), ] diff --git a/zds/tutorialv2/views/lists.py b/zds/tutorialv2/views/lists.py index 4cd5f6da6c..2966683023 100644 --- a/zds/tutorialv2/views/lists.py +++ b/zds/tutorialv2/views/lists.py @@ -395,7 +395,7 @@ def get_queryset(self): if "sort" in self.request.GET and self.request.GET["sort"].lower() in self.sorts: self.sort = self.request.GET["sort"] elif not self.sort: - self.sort = "abc" + self.sort = "modification" queryset = self.sorts[self.sort.lower()][0](queryset) return queryset