From 9061058369816ddf18499908b052c92d050947e8 Mon Sep 17 00:00:00 2001 From: juuso-j Date: Fri, 9 Feb 2024 09:23:17 +0200 Subject: [PATCH] Order Option by order_number --- profiles/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/models.py b/profiles/models.py index 4f74e43..715fd5c 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -50,7 +50,7 @@ class Option(models.Model): is_other = models.BooleanField(default=False, verbose_name="is other textfield") class Meta: - ordering = ["question__number", "sub_question__question__number"] + ordering = ["order_number"] def __str__(self): return f"Value: {self.value}"