Skip to content

Commit 38eb76b

Browse files
authored
Merge pull request #266 from N5GEH/205-re-arrange-smart-data-model-order-last-edited
chore(smartdatamodels): changed the order of listing to latest first
2 parents 8f7732b + 277b1d9 commit 38eb76b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Entirety/smartdatamodels/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_context_data(self, **kwargs):
2323
return context
2424

2525
def get_queryset(self):
26-
return SmartDataModel.objects.order_by("date_modified").filter(
26+
return SmartDataModel.objects.order_by("-date_modified").filter(
2727
name__icontains=self.request.GET.get("search", default="")
2828
)
2929

0 commit comments

Comments
 (0)