From f2dcc39c14f3d0a4cef862ddc5cdf7c81f3b4297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DURR?= Date: Fri, 26 Aug 2022 23:28:08 +0200 Subject: [PATCH] No inspiration --- subscription/models.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subscription/models.py b/subscription/models.py index f0ea0907..e0a3f17b 100644 --- a/subscription/models.py +++ b/subscription/models.py @@ -73,9 +73,16 @@ class Subscription(models.Model): verbose_name=_("location"), ) + + + class Meta: ordering = ["subscription_start"] + + + + def clean(self): try: for s in (