From b5a676684f3a4b85682934a6c1c251559131be28 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 9 May 2024 12:36:12 +0200 Subject: 🐛 fix hierarchical ordering in admin and forms (refs #5797) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_context_records/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_context_records') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 1c0acadbc..a112829f1 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -332,7 +332,7 @@ class ActivityType(GeneralType): class Meta: verbose_name = _("Activity Type") verbose_name_plural = _("Activity Types") - ordering = ("order",) + ordering = ("order", "label") def __str__(self): return self.label -- cgit v1.2.3