From afa673ccd991527656ad33eaec17f204f9e6e5bf Mon Sep 17 00:00:00 2001 From: mrtoine Date: Tue, 16 Dec 2025 13:23:15 +0100 Subject: [PATCH] =?UTF-8?q?Tri=20des=20articles=20par=20date=20de=20cr?= =?UTF-8?q?=C3=A9ation=20d=C3=A9croissante=20dans=20le=20`context=5Fproces?= =?UTF-8?q?sor`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog/context_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/context_processor.py b/blog/context_processor.py index a1666a4..d09e196 100644 --- a/blog/context_processor.py +++ b/blog/context_processor.py @@ -1,5 +1,5 @@ from .models import Post def posts_list(request): - posts = Post.objects.all() + posts = Post.objects.all().order_by('-created_at') return {'posts': posts} \ No newline at end of file