diff options
author | Ernesto Rico Schmidt <ernesto@helsinki.at> | 2025-02-24 19:12:02 (GMT) |
---|---|---|
committer | Ernesto Rico Schmidt <ernesto@helsinki.at> | 2025-02-24 19:12:02 (GMT) |
commit | f730fbb803575c9dd7c6ae6e06483239e14b971d (patch) | |
tree | 4808b4d9c36083b212914104fafd24da9b468c85 | |
parent | f6a26b0423eb01704361b5f5a6b7345762868ef5 (diff) |
Order notes by start, descending
-rw-r--r-- | program/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/program/views.py b/program/views.py index 6ddeacb..40c73c6 100644 --- a/program/views.py +++ b/program/views.py @@ -381,6 +381,7 @@ def search(request): if types is None or "note" in types: notes = list( Note.objects.filter(title__icontains=q) + .order_by("-start") .select_related("show", "timeslot") .values( "content", |